1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

UPD Azure_rm_common with non-blocking pull request from azure_rm.py (#20338)

This commit is contained in:
Baptiste DB 2017-01-18 23:32:17 +01:00 committed by Matt Davis
parent 8b9ded3556
commit d7967aa3a1

View file

@ -567,7 +567,11 @@ class AzureRMModuleBase(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 storage_client(self): def storage_client(self):