Skip to content

Commit 699d4cf

Browse files
authored
Feature/query for risk indicators (#314)
* added risk severity and indicator querying * fixed a string * fixed a string * updated changelog and imports * styling * -risk-indicator error message now displays ALL_CAPS_ARGS * use reverse mapping to use ALL_CAPS_VALUES for risk-indicator option * replace deprecated option ':show-nested:' * allow for multiple --risk-indicator flags * simplifying code
1 parent 0e68738 commit 699d4cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/code42cli/cmds/securitydata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@
214214
def risk_indicator_callback(filter_cls):
215215
def callback(ctx, param, arg):
216216
if arg:
217-
mapped_arg = (risk_indicator_map[arg[0]],)
217+
mapped_args = tuple(risk_indicator_map[i] for i in arg)
218218
filter_func = searchopt.is_in_filter(filter_cls)
219-
return filter_func(ctx, param, mapped_arg)
219+
return filter_func(ctx, param, mapped_args)
220220

221221
return callback
222222

0 commit comments

Comments
 (0)