From 1cde3c40f4748b35d8d0991c6e6ab80395e051c7 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Wed, 14 Aug 2013 23:37:49 +0200 Subject: [PATCH] just a small fix to reset the errorcode and errormessage before execution of a service --- lib/services/service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/services/service.py b/lib/services/service.py index faf1d36..af8e076 100644 --- a/lib/services/service.py +++ b/lib/services/service.py @@ -123,6 +123,8 @@ class Service(object): pass def pre_execute(self, host): + self.errorcode = 0 + self.errormessage = None pass def parse_result(self, executionResult):