Skip to content

Commit

Permalink
fix: add timeout to LRO poller result
Browse files Browse the repository at this point in the history
  • Loading branch information
CustardTart32 committed Nov 13, 2024
1 parent 1d954d9 commit a590c05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/azure-cli/azure/cli/command_modules/acs/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,7 @@ def aks_runcommand(cmd, client, resource_group_name, name, command_string="", co
time.sleep(0.5)

progress_controller.end()
return _print_command_result(cmd.cli_ctx, command_result_poller.result())
return _print_command_result(cmd.cli_ctx, command_result_poller.result(timeout=0))


def aks_command_result(cmd, client, resource_group_name, name, command_id=""):
Expand Down Expand Up @@ -2140,7 +2140,7 @@ def _print_command_result(cli_ctx, commandResult):
return

# *-ing state
print(f"{colorama.Fore.BLUE}command is in {commandResult.provisioning_state} state{colorama.Style.RESET_ALL}")
print(f"{colorama.Fore.BLUE}command (id: {commandResult.id}) is in {commandResult.provisioning_state} state{colorama.Style.RESET_ALL}")
return


Expand Down

0 comments on commit a590c05

Please sign in to comment.