mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-21 05:15:12 +02:00
Feature/group state cli (#505)
This commit is contained in:
parent
5867f45c3a
commit
266454e75f
3 changed files with 33 additions and 10 deletions
|
|
@ -97,11 +97,11 @@ def set_tool(
|
|||
for a in arguments
|
||||
]
|
||||
|
||||
if group: object["group"] = group
|
||||
if group is not None: object["group"] = group
|
||||
|
||||
if state: object["state"] = state
|
||||
|
||||
if applicable_states: object["applicable-states"] = applicable_states
|
||||
if applicable_states is not None: object["applicable-states"] = applicable_states
|
||||
|
||||
values = api.put([
|
||||
ConfigValue(
|
||||
|
|
@ -254,9 +254,9 @@ def main():
|
|||
collection=args.collection,
|
||||
template=args.template,
|
||||
arguments=arguments,
|
||||
group=args.group or [],
|
||||
group=args.group,
|
||||
state=args.state,
|
||||
applicable_states=getattr(args, 'applicable_states', None) or [],
|
||||
applicable_states=args.applicable_states,
|
||||
)
|
||||
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue