From 8b9ded35563d55ff542f8ab25b0809ce199878bc Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 18 Jan 2017 14:28:36 -0800 Subject: [PATCH] Fix bug 17934 : Azure register failure must not be blocking (#18695) * Fix bug 17934 * Update link in Azure provider warning log --- contrib/inventory/azure_rm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/inventory/azure_rm.py b/contrib/inventory/azure_rm.py index b36d66e279..c79f9ce25e 100755 --- a/contrib/inventory/azure_rm.py +++ b/contrib/inventory/azure_rm.py @@ -362,7 +362,11 @@ class AzureRM(object): resource_client = self.rm_client resource_client.providers.register(key) 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 def network_client(self):