Ema has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/293132

Change subject: varnishapi.py: reset error message
......................................................................

varnishapi.py: reset error message

Once the log has been reacquired we should not keep telling the
application there has been an error.

Change-Id: I5416641ef3674eae530e09c8450a0591aab13f4b
---
M modules/varnish/files/varnishapi.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/32/293132/1

diff --git a/modules/varnish/files/varnishapi.py 
b/modules/varnish/files/varnishapi.py
index 7fa71ac..1f5fe84 100644
--- a/modules/varnish/files/varnishapi.py
+++ b/modules/varnish/files/varnishapi.py
@@ -631,6 +631,9 @@
             self.vslq = self.lva.VSLQ_New(
                 self.vsl, z, self.__g_arg, self.__q_arg)
             self.error = 'Log reacquired'
+        else:
+            self.error = ''
+
         i = self.lib.VSLQ_Dispatch(
             self.vslq, VSLQ_dispatch_f(self.__callBack), None)
         return(i)

-- 
To view, visit https://gerrit.wikimedia.org/r/293132
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5416641ef3674eae530e09c8450a0591aab13f4b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ema <e...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to