if proc.poll():
msg = "Failed to execute command"
self.error(msg, out, err)
if proc.poll():
msg = "Failed to execute command"
self.error(msg, out, err)
else:
msg = " Failed to execute command '%s'" % command
self.error(msg, out, err)
else:
msg = " Failed to execute command '%s'" % command
self.error(msg, out, err)