Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamsugara22 committed Oct 20, 2024
1 parent 4e85cbb commit 5c584c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions st2client/st2client/commands/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,9 @@ def _print_execution_details(self, execution, args, **kwargs):
options["json"] = args.json
options["yaml"] = args.yaml
options["with_schema"] = args.with_schema
options[
"attribute_transform_functions"
] = self.attribute_transform_functions
options["attribute_transform_functions"] = (
self.attribute_transform_functions
)
self.print_output(instance, formatter, **options)

def _run_and_print_child_task_list(self, execution, args, **kwargs):
Expand Down Expand Up @@ -878,7 +878,7 @@ def transform_array(value, action_params=None, auto_dict=False):
# the 'result' to the dict type value.
if all([isinstance(x, str) and ":" in x for x in result]) and auto_dict:
result_dict = {}
for (k, v) in [x.split(":") for x in result]:
for k, v in [x.split(":") for x in result]:
# To parse values using the 'transformer' according to the type which is
# specified in the action metadata, calling 'normalize' method recursively.
if (
Expand Down Expand Up @@ -1209,7 +1209,7 @@ def _get_parameter_sort_value(self, parameters, name):
"""
parameter = parameters.get(name)
if parameter:
position = parameter.get('position')
position = parameter.get("position")
return str(position) if position is not None else name
return None

Expand Down

0 comments on commit 5c584c6

Please sign in to comment.