Skip to content

Commit 1db8fd5

Browse files
authored
Merge pull request #4630 from Azure/cadenmarchese/cli-downstreaming
sync our development extension with azure-cli upstream module
2 parents b0ccbc2 + 64aca84 commit 1db8fd5

File tree

8 files changed

+9748
-14
lines changed

8 files changed

+9748
-14
lines changed

python/az/aro/azext_aro/_validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ def validate_pull_secret(namespace):
128128
namespace.pull_secret = file.read().rstrip('\n')
129129

130130
if not isinstance(json.loads(namespace.pull_secret), dict):
131-
raise Exception()
132-
except Exception as e:
131+
raise ValueError("Pull secret must be a valid JSON object")
132+
except (ValueError, json.JSONDecodeError) as e:
133133
raise InvalidArgumentValueError("Invalid --pull-secret.") from e
134134

135135

python/az/aro/azext_aro/aaz/latest/identity/__cmd_group.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
from azure.cli.core.aaz import *
1212

1313

14-
@register_command_group(
15-
"identity",
16-
)
1714
class __CMDGroup(AAZCommandGroup):
1815
"""Manage Managed Identity
1916
"""

python/az/aro/azext_aro/aaz/latest/identity/_create.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
from azure.cli.core.aaz import *
1212

1313

14-
@register_command(
15-
"identity create",
16-
)
1714
class Create(AAZCommand):
1815
"""Create an identity in the specified subscription and resource group.
1916
"""

python/az/aro/azext_aro/aaz/latest/identity/_delete.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
from azure.cli.core.aaz import *
1212

1313

14-
@register_command(
15-
"identity delete",
16-
confirmation="Are you sure you want to perform this operation?",
17-
)
1814
class Delete(AAZCommand):
1915
"""Delete the identity.
2016
"""

python/az/aro/azext_aro/aaz/latest/network/vnet/__cmd_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class __CMDGroup(AAZCommandGroup):
1515
"""Check if a private IP address is available for use within a virtual network.
1616
17-
To learn more about Virtual Networks visit https://docs.microsoft.com/azure/virtual-network/virtual-network-manage-network.
17+
To learn more about Virtual Networks visit https://learn.microsoft.com/azure/virtual-network/virtual-network-manage-network.
1818
"""
1919
pass
2020

python/az/aro/azext_aro/aaz/latest/network/vnet/subnet/__cmd_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class __CMDGroup(AAZCommandGroup):
1515
"""Manage subnets in an Azure Virtual Network.
1616
17-
To learn more about subnets visit https://docs.microsoft.com/azure/virtual-network/virtual-network-manage-subnet.
17+
To learn more about subnets visit https://learn.microsoft.com/azure/virtual-network/virtual-network-manage-subnet.
1818
"""
1919
pass
2020

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- application/json
7+
Accept-Encoding:
8+
- gzip, deflate
9+
CommandName:
10+
- aro get-versions
11+
Connection:
12+
- keep-alive
13+
ParameterSetName:
14+
- --location
15+
User-Agent:
16+
- AZURECLI/2.0.0
17+
method: GET
18+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RedHatOpenShift/locations/eastus/openShiftVersions?api-version=2025-07-25
19+
response:
20+
body:
21+
string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RedHatOpenShift/locations/eastus/openshiftversions/4.10.0","name":"4.10.0","type":"Microsoft.RedHatOpenShift/locations/openshiftversions","properties":{"version":"4.10.0"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RedHatOpenShift/locations/eastus/openshiftversions/4.11.0","name":"4.11.0","type":"Microsoft.RedHatOpenShift/locations/openshiftversions","properties":{"version":"4.11.0"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RedHatOpenShift/locations/eastus/openshiftversions/4.12.0","name":"4.12.0","type":"Microsoft.RedHatOpenShift/locations/openshiftversions","properties":{"version":"4.12.0"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RedHatOpenShift/locations/eastus/openshiftversions/4.13.0","name":"4.13.0","type":"Microsoft.RedHatOpenShift/locations/openshiftversions","properties":{"version":"4.13.0"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RedHatOpenShift/locations/eastus/openshiftversions/4.14.0","name":"4.14.0","type":"Microsoft.RedHatOpenShift/locations/openshiftversions","properties":{"version":"4.14.0"}}]}'
22+
headers:
23+
cache-control:
24+
- no-cache
25+
content-length:
26+
- '1234'
27+
content-type:
28+
- application/json; charset=utf-8
29+
date:
30+
- Thu, 20 Feb 2026 15:00:00 GMT
31+
expires:
32+
- '-1'
33+
pragma:
34+
- no-cache
35+
strict-transport-security:
36+
- max-age=31536000; includeSubDomains
37+
vary:
38+
- Accept-Encoding
39+
x-content-type-options:
40+
- nosniff
41+
status:
42+
code: 200
43+
message: OK
44+
version: 1

python/az/aro/azext_aro/tests/latest/integration/recordings/test_aro_public_cluster.yaml

Lines changed: 9700 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)