When doing 'service X restart' in CentOs it says:
'Error: Redirecting to /bin/systemctl restart'
But it's not really an error but more of an info message
Change-Id: I03e66aa872e9b3f4fd85d579207d9dcc6494eb8c
Signed-off-by: yayogev <yaronyogev@gmail.com>
ssh.exec(cmd)
else:
self.run(cmd, ssh_to_host=host, ssh=ssh)
- except SshError:
- self.had_errors = True
+ except SshError as e:
+ if 'Error: Redirecting to /bin/systemctl restart' not in str(e):
+ self.had_errors = True
def deploy_config_to_target(self, host_details):
try: