X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fneco%2Fresources%2Flinux%2Fapplication.py;h=882fb4c340a4690836220b03aa1da21655687d00;hb=2a915786e4a6fae96f74878746e61f36aae9ff4b;hp=e7a34d5899f3b2c52542813889e44beb1cba53cd;hpb=72accb16ffd0f4349f721f8ca21738179ac3d597;p=nepi.git diff --git a/src/neco/resources/linux/application.py b/src/neco/resources/linux/application.py index e7a34d58..882fb4c3 100644 --- a/src/neco/resources/linux/application.py +++ b/src/neco/resources/linux/application.py @@ -386,24 +386,24 @@ class LinuxApplication(ResourceManager): if not self.pid or not self.ppid: failed = True - (out, chkerr), proc = self.node.check_output(self.app_home, 'stderr') + (out, chkerr), proc = self.node.check_output(self.app_home, 'stderr') - if failed or out or chkerr: - # check if execution errors occurred - msg = " Failed to start command '%s' " % command - out = out - if err: - err = err - elif chkerr: - err = chkerr + if failed or out or chkerr: + # check if execution errors occurred + msg = " Failed to start command '%s' " % command + out = out + if err: + err = err + elif chkerr: + err = chkerr - self.error(msg, out, err) + self.error(msg, out, err) - msg2 = " Setting state to Failed" - self.debug(msg2) - self._state = ResourceState.FAILED + msg2 = " Setting state to Failed" + self.debug(msg2) + self._state = ResourceState.FAILED - raise RuntimeError, msg + raise RuntimeError, msg def stop(self): command = self.get('command') or ''