mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
fix: add hostname to error output
This commit is contained in:
@@ -183,7 +183,8 @@ def sizeChanged(hostname, pathsToOptions, path):
|
||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, encoding="utf-8")
|
||||
stdout, stderr = p.communicate()
|
||||
if p.wait() != 0:
|
||||
raise OSError("ssh commmand for backup size info failed '{}' - '{}'".format(stderr, stdout))
|
||||
raise OSError("ssh commmand for backup size info failed '{}' - '{}' Host: {}".format(
|
||||
stderr, stdout, hostname))
|
||||
|
||||
# parse response #
|
||||
result = json.loads(stdout)
|
||||
|
||||
Reference in New Issue
Block a user