Skip to content

Commit 64aca84

Browse files
committed
fix doc links and validation error message
1 parent 22f3804 commit 64aca84

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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/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

0 commit comments

Comments
 (0)