Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/azure-cli/azure/cli/command_modules/aro/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,12 @@ def get_route_tables_from_subnets(cli_ctx, subnets):

def get_cluster_network_resources(cli_ctx, oc):
master_subnet = oc.master_profile.subnet_id
worker_subnets = {w.subnet_id for w in oc.worker_profiles}
worker_subnets = set()

# Ensure that worker_profiles exists
# it will not be returned if the cluster resources do not exist
if oc.worker_profiles is not None:
worker_subnets = {w.subnet_id for w in oc.worker_profiles if w}

master_parts = parse_resource_id(master_subnet)
vnet = resource_id(
Expand Down