Skip to content

Commit a99fb8b

Browse files
committed
[resource]: include provisioningState in table output for az resource command
1 parent 0ef58ab commit a99fb8b

File tree

1 file changed

+1
-1
lines changed
  • src/azure-cli/azure/cli/command_modules/resource

1 file changed

+1
-1
lines changed

src/azure-cli/azure/cli/command_modules/resource/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def transform_resource_list(result):
6767
for r in result:
6868
res = OrderedDict([('Name', r['name']), ('ResourceGroup', r['resourceGroup']), ('Location', r['location']), ('Type', r['type'])])
6969
try:
70-
res['Status'] = r['properties']['provisioningStatus']
70+
res['Status'] = r['provisioningState']
7171
except TypeError:
7272
res['Status'] = ' '
7373
transformed.append(res)

0 commit comments

Comments
 (0)