Fix bug 17934 : Azure register failure must not be blocking (#18695)

* Fix bug 17934

* Update link in Azure provider warning log
This commit is contained in:
Laurent Mazuel 2017-01-18 14:28:36 -08:00 committed by Matt Davis
parent 4673a9c9c2
commit 8b9ded3556

View file

@ -362,7 +362,11 @@ class AzureRM(object):
resource_client = self.rm_client resource_client = self.rm_client
resource_client.providers.register(key) resource_client.providers.register(key)
except Exception as exc: except Exception as exc:
self.fail("One-time registration of {0} failed - {1}".format(key, str(exc))) self.log("One-time registration of {0} failed - {1}".format(key, str(exc)))
self.log("You might need to register {0} using an admin account".format(key))
self.log(("To register a provider using the Python CLI: "
"https://docs.microsoft.com/azure/azure-resource-manager/"
"resource-manager-common-deployment-errors#noregisteredproviderfound"))
@property @property
def network_client(self): def network_client(self):