Skip to content
Snippets Groups Projects
Commit d70b3058 authored by Iustin Pop's avatar Iustin Pop
Browse files

Change exit code of gnt-backup list

Currently gnt-backup list exits with the same error code even if can't
contact som nodes for backup information.

The patch changes it to return 1 instead in this case.

Reviewed-by: imsnah
parent ebf366ee
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@ def PrintExportList(opts, args):
"""
exports = GetClient().QueryExports(opts.nodes)
retcode = 0
for node in exports:
ToStdout("Node: %s", node)
ToStdout("Exports:")
......@@ -53,6 +54,8 @@ def PrintExportList(opts, args):
ToStdout("\t%s", instance_name)
else:
ToStdout(" Could not get exports list")
retcode = 1
return retcode
def ExportInstance(opts, args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment