Skip to content

Commit e62d3fb

Browse files
authored
Merge pull request #117 from padovan/fix-maestro-results
maestro_results: throw error if required options are missing
2 parents bd29e42 + f92f735 commit e62d3fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kcidev/subcommands/maestro_results.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def maestro_results(ctx, nodeid, nodes, limit, offset, filter, field):
4949
config = ctx.obj.get("CFG")
5050
instance = ctx.obj.get("INSTANCE")
5151
url = config[instance]["api"]
52+
if not nodeid and not nodes:
53+
kci_err("--nodes or --nodes needs to be supplied")
54+
sys.exit(-1)
5255
if nodeid:
5356
results = maestro_get_node(url, nodeid)
5457
if nodes:

0 commit comments

Comments
 (0)