From b4de46467fd73769fbb154158be423c254742ac7 Mon Sep 17 00:00:00 2001 From: micafer Date: Thu, 24 Mar 2022 11:13:52 +0100 Subject: [PATCH] Enable to use / to split net subnet name --- IM/connectors/Azure.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/IM/connectors/Azure.py b/IM/connectors/Azure.py index 3d4307a9a..19c029949 100644 --- a/IM/connectors/Azure.py +++ b/IM/connectors/Azure.py @@ -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]