mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix storage endpoint for Azure Stack (#33946)
* Fix storage endpoint for Azure Stack https://github.com/Azure/msrestazure-for-python/issues/64 * corrected visual indentation
This commit is contained in:
parent
9233520b31
commit
6643fe821e
1 changed files with 4 additions and 5 deletions
|
@ -785,10 +785,9 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
|
||||||
self.storage_blob_name = self.name
|
self.storage_blob_name = self.name
|
||||||
|
|
||||||
if self.storage_account_name and not self.managed_disk_type:
|
if self.storage_account_name and not self.managed_disk_type:
|
||||||
self.get_storage_account(self.storage_account_name)
|
properties = self.get_storage_account(self.storage_account_name)
|
||||||
|
|
||||||
requested_vhd_uri = 'https://{0}.blob.{1}/{2}/{3}'.format(self.storage_account_name,
|
requested_vhd_uri = '{0}{1}/{2}'.format(properties.primary_endpoints.blob,
|
||||||
self._cloud_environment.suffixes.storage_endpoint,
|
|
||||||
self.storage_container_name,
|
self.storage_container_name,
|
||||||
self.storage_blob_name)
|
self.storage_blob_name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue