projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LUSetInstanceParams: nic parameters
[ganeti-local]
/
scripts
/
gnt-job
diff --git
a/scripts/gnt-job
b/scripts/gnt-job
index
ce81709
..
2da75a3
100755
(executable)
--- a/
scripts/gnt-job
+++ b/
scripts/gnt-job
@@
-85,7
+85,11
@@
def ListJobs(opts, args):
headers = None
# change raw values to nicer strings
headers = None
# change raw values to nicer strings
- for row in output:
+ for row_id, row in enumerate(output):
+ if row is None:
+ ToStderr("No such job: %s" % args[row_id])
+ continue
+
for idx, field in enumerate(selected_fields):
val = row[idx]
if field == "status":
for idx, field in enumerate(selected_fields):
val = row[idx]
if field == "status":