return false on MikroTik command error

This commit is contained in:
sepehr 2025-01-28 16:14:04 +03:00
parent d6fbf23067
commit 81a1172660

View file

@ -632,6 +632,8 @@ def run_snippet(dev, snippet):
result=ssh.exec_command(snippet)
if not result:
result="executed successfully"
if "no such item" in result:
result=False
except Exception as e:
log.error(e)
log_alert('ssh',dev,'During backup ssh error')