summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/monitoring/setup/monitoring_handler.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/monitoring/setup/monitoring_handler.py b/app/monitoring/setup/monitoring_handler.py
index 7a95a3a..903b8d8 100644
--- a/app/monitoring/setup/monitoring_handler.py
+++ b/app/monitoring/setup/monitoring_handler.py
@@ -385,8 +385,9 @@ class MonitoringHandler(MongoAccess, CliAccess, BinaryConverter):
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: