Skip to content

Commit 230822e

Browse files
committed
WIP commit
1 parent 04e88d9 commit 230822e

File tree

101 files changed

+1459
-1456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1459
-1456
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ def format_what_if_operation_result(what_if_operation_result, enable_color=True)
8585
_format_resource_changes_stats(builder,
8686
what_if_operation_result.changes,
8787
definite_changes=True)
88-
_format_resource_changes(builder,
89-
what_if_operation_result.potential_changes,
90-
definite_changes=False)
91-
_format_resource_changes_stats(builder,
92-
what_if_operation_result.potential_changes,
93-
definite_changes=False)
94-
_format_diagnostics(builder,
95-
what_if_operation_result.changes,
96-
what_if_operation_result.potential_changes,
97-
what_if_operation_result.diagnostics)
88+
# _format_resource_changes(builder,
89+
# what_if_operation_result.potential_changes,
90+
# definite_changes=False)
91+
# _format_resource_changes_stats(builder,
92+
# what_if_operation_result.potential_changes,
93+
# definite_changes=False)
94+
# _format_diagnostics(builder,
95+
# what_if_operation_result.changes,
96+
# what_if_operation_result.potential_changes,
97+
# what_if_operation_result.diagnostics)
9898
return builder.build()
9999

100100

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ def _build_preflight_error_message(preflight_error):
8787

8888

8989
def _build_http_response_error_message(http_error):
90-
error_txt = http_error.response.internal_response.text
90+
try:
91+
error_txt = http_error.response.internal_response.text
92+
except AttributeError:
93+
return ''
9194

9295
error_info = json.loads(error_txt)['error']
9396
error_details = error_info.pop('details') if 'details' in error_info else []

src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_aaz_resource_id_arg_fmt.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interactions:
1414
- AZURECLI/2.45.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Linux-5.15.0-1031-azure-x86_64-with-glibc2.31)
1515
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0
1616
method: GET
17-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_id_arg_fmt000001?api-version=2022-09-01
17+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_id_arg_fmt000001?api-version=2024-11-01
1818
response:
1919
body:
2020
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_resource_id_arg_fmt000001","name":"test_resource_id_arg_fmt000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2","tags":{"product":"azurecli","cause":"automation","date":"2023-02-07T11:12:46Z"},"properties":{"provisioningState":"Succeeded"}}'
@@ -55,7 +55,7 @@ interactions:
5555
- AZURECLI/2.45.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Linux-5.15.0-1031-azure-x86_64-with-glibc2.31)
5656
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0
5757
method: GET
58-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_id_arg_fmt000001?api-version=2022-09-01
58+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_id_arg_fmt000001?api-version=2024-11-01
5959
response:
6060
body:
6161
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_resource_id_arg_fmt000001","name":"test_resource_id_arg_fmt000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2","tags":{"product":"azurecli","cause":"automation","date":"2023-02-07T11:12:46Z"},"properties":{"provisioningState":"Succeeded"}}'
@@ -96,7 +96,7 @@ interactions:
9696
- AZURECLI/2.45.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Linux-5.15.0-1031-azure-x86_64-with-glibc2.31)
9797
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0
9898
method: GET
99-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_id_arg_fmt000001?api-version=2022-09-01
99+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_id_arg_fmt000001?api-version=2024-11-01
100100
response:
101101
body:
102102
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_resource_id_arg_fmt000001","name":"test_resource_id_arg_fmt000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2","tags":{"product":"azurecli","cause":"automation","date":"2023-02-07T11:12:46Z"},"properties":{"provisioningState":"Succeeded"}}'
@@ -137,7 +137,7 @@ interactions:
137137
- AZURECLI/2.45.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Linux-5.15.0-1031-azure-x86_64-with-glibc2.31)
138138
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0
139139
method: GET
140-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_id_arg_fmt000001?api-version=2022-09-01
140+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_id_arg_fmt000001?api-version=2024-11-01
141141
response:
142142
body:
143143
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_resource_id_arg_fmt000001","name":"test_resource_id_arg_fmt000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2","tags":{"product":"azurecli","cause":"automation","date":"2023-02-07T11:12:46Z"},"properties":{"provisioningState":"Succeeded"}}'

src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_aaz_resource_location_arg_fmt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interactions:
1313
User-Agent:
1414
- AZURECLI/2.60.0 azsdk-python-core/1.28.0 Python/3.10.12 (Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35)
1515
method: GET
16-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_location_arg_fmt000001?api-version=2022-09-01
16+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_location_arg_fmt000001?api-version=2024-11-01
1717
response:
1818
body:
1919
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_resource_location_arg_fmt000001","name":"test_resource_location_arg_fmt000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2","tags":{"product":"azurecli","cause":"automation","test":"test_aaz_resource_location_arg_fmt","date":"2024-05-07T16:44:11Z","module":"resource"},"properties":{"provisioningState":"Succeeded"}}'

src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_aaz_subscription_id_arg_format.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interactions:
1616
- AZURECLI/2.45.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Linux-5.15.0-1031-azure-x86_64-with-glibc2.31)
1717
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0
1818
method: GET
19-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_subscription_id_arg_format000001?api-version=2022-09-01
19+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_subscription_id_arg_format000001?api-version=2024-11-01
2020
response:
2121
body:
2222
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_subscription_id_arg_format000001","name":"test_subscription_id_arg_format000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2023-02-07T11:12:53Z"},"properties":{"provisioningState":"Succeeded"}}'

src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_cannotdelete_resource_lock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interactions:
1616
- AZURECLI/2.45.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Linux-5.15.0-1031-azure-x86_64-with-glibc2.31)
1717
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0
1818
method: GET
19-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cannotdelete_resource_lock000001?api-version=2022-09-01
19+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cannotdelete_resource_lock000001?api-version=2024-11-01
2020
response:
2121
body:
2222
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cannotdelete_resource_lock000001","name":"cli_test_cannotdelete_resource_lock000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2023-02-07T11:12:56Z"},"properties":{"provisioningState":"Succeeded"}}'

0 commit comments

Comments
 (0)