- interfaceTypeString = one_virtual_network_interface["network_interface_requirements"]["interfaceType"]
- interfaceType = json.loads(interfaceTypeString)["configurationValue"]
+ network_interface_requirements = one_virtual_network_interface["network_interface_requirements"]
+ interfaceTypeString = ignore_case_get(network_interface_requirements, "interfaceType")
+ interfaceType = ""
+ if interfaceTypeString != "":
+ interfaceType = json.loads(interfaceTypeString)["configurationValue"]