Skip to content

Commit

Permalink
Add missing parameters (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred-sun authored Aug 4, 2022
1 parent 6a4e5da commit e3f1f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/azure_rm_manageddisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def get_managed_disk(self):
def is_attach_caching_option_different(self, vm_name, disk):
resp = False
if vm_name:
vm = self._get_vm(vm_name)
vm = self._get_vm(self.resource_group, vm_name)
correspondence = next((d for d in vm.storage_profile.data_disks if d.name.lower() == disk.get('name').lower()), None)
caching_options = self.compute_models.CachingTypes[self.attach_caching] if self.attach_caching and self.attach_caching != '' else None
if correspondence and correspondence.caching != caching_options:
Expand Down

0 comments on commit e3f1f08

Please sign in to comment.