Skip to content

Commit

Permalink
Merge pull request #117 from padovan/fix-maestro-results
Browse files Browse the repository at this point in the history
maestro_results: throw error if required options are missing
  • Loading branch information
aliceinwire authored Feb 20, 2025
2 parents bd29e42 + f92f735 commit e62d3fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kcidev/subcommands/maestro_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def maestro_results(ctx, nodeid, nodes, limit, offset, filter, field):
config = ctx.obj.get("CFG")
instance = ctx.obj.get("INSTANCE")
url = config[instance]["api"]
if not nodeid and not nodes:
kci_err("--nodes or --nodes needs to be supplied")
sys.exit(-1)
if nodeid:
results = maestro_get_node(url, nodeid)
if nodes:
Expand Down

0 comments on commit e62d3fb

Please sign in to comment.