Skip to content

Conversation

@zhoxing-ms
Copy link
Contributor

@zhoxing-ms zhoxing-ms commented May 3, 2022

Description

When executing az resource wait command, calling _get_provisioning_state() method can't get provisioning_state.
code link: command_operation.py
image

Because instance.properties is dict type at this time, so it can only be obtained through instance.properties['provisioningState']
image

In addition, this problem has existed since very early CLI versions and even it may never worked correctly before (there had been no related scenario tests). I even tried the 2.23.0 version of CLI, which relies on the Track 1 Python SDK, this problem can still be reproduced.
Therefore, this is a very old legacy problem, so I submitted this PR to add correct parsing logic to method _get_provisioning_state()

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

@ghost ghost added the Auto-Assign Auto assign by bot label May 3, 2022
@ghost ghost requested a review from yonzhan May 3, 2022 11:54
@ghost ghost assigned zhoxing-ms May 3, 2022
@ghost ghost added the ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group label May 3, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented May 3, 2022

ARM

@zhoxing-ms zhoxing-ms force-pushed the fix_resource_wait branch from dccfdc0 to fd8b67d Compare May 11, 2022 01:34
@zhoxing-ms zhoxing-ms marked this pull request as ready for review May 17, 2022 13:18
@zhoxing-ms
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@zhoxing-ms zhoxing-ms merged commit 2e524a3 into Azure:dev May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants