Skip to content

Commit

Permalink
Enable to use / to split net subnet name
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Mar 24, 2022
1 parent 94a0946 commit b4de464
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion IM/connectors/Azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,9 @@ def create_nets(self, radl, credentials, subscription_id, group_name, inf):
if net.getValue("provider_id"):
parts = net.getValue("provider_id").split(".")
if len(parts) != 2:
raise Exception("Invalid provider_id format: net_name.subnet_name")
parts = net.getValue("provider_id").split("/")
if len(parts) != 2:
raise Exception("Invalid provider_id format: net_name.subnet_name")
vnet_name = parts[0]
subnet_name = parts[1]

Expand Down

0 comments on commit b4de464

Please sign in to comment.