mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-07-07 04:24:34 +02:00
return false on MikroTik command error
This commit is contained in:
parent
d6fbf23067
commit
81a1172660
1 changed files with 2 additions and 0 deletions
|
@ -632,6 +632,8 @@ def run_snippet(dev, snippet):
|
||||||
result=ssh.exec_command(snippet)
|
result=ssh.exec_command(snippet)
|
||||||
if not result:
|
if not result:
|
||||||
result="executed successfully"
|
result="executed successfully"
|
||||||
|
if "no such item" in result:
|
||||||
|
result=False
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(e)
|
log.error(e)
|
||||||
log_alert('ssh',dev,'During backup ssh error')
|
log_alert('ssh',dev,'During backup ssh error')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue