Skip to content

Commit

Permalink
Fix build command iteration (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
oharan2 authored Jul 26, 2023
1 parent 1f134d5 commit c36a2e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rosa/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ def build_command(command, allowed_commands=None, aws_region=None):
commands_to_process_len = len(commands_to_process)
extra_commands = set()
for idx in range(commands_to_process_len):
_output = commands_dict[commands_to_process[: commands_to_process_len - idx]]
try:
_output = commands_dict[
commands_to_process[: commands_to_process_len - idx]
]
except KeyError:
continue
if _output.get("json_output") is True:
extra_commands.add("-ojson")

Expand Down

0 comments on commit c36a2e2

Please sign in to comment.