Skip to content

Commit

Permalink
fix sanity test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyuazhang committed Aug 12, 2020
1 parent 3aebad7 commit beb74c1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/modules/azure_rm_manageddisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def attach(self, vm_name, disk):
# prepare the data disk
params = self.compute_models.ManagedDiskParameters(id=disk.get('id'), storage_account_type=disk.get('storage_account_type'))
caching_options = self.compute_models.CachingTypes[self.attach_caching] if self.attach_caching and self.attach_caching != '' else None
# pylint: disable=missing-kwoa
data_disk = self.compute_models.DataDisk(lun=lun,
create_option=self.compute_models.DiskCreateOptionTypes.attach,
managed_disk=params,
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/azure_rm_roleassignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def create_roleassignment(self):
self.log("Creating role assignment {0}".format(self.name))

try:
# pylint: disable=missing-kwoa
parameters = RoleAssignmentCreateParameters(role_definition_id=self.role_definition_id, principal_id=self.assignee_object_id)
response = self._client.role_assignments.create(scope=self.scope,
role_assignment_name=self.name,
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/azure_rm_storageaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ def create_account(self):
sku = self.storage_models.Sku(name=self.storage_models.SkuName(self.account_type))
sku.tier = self.storage_models.SkuTier.standard if 'Standard' in self.account_type else \
self.storage_models.SkuTier.premium
# pylint: disable=missing-kwoa
parameters = self.storage_models.StorageAccountCreateParameters(sku=sku,
kind=self.kind,
location=self.location,
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/azure_rm_virtualmachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -2038,6 +2038,7 @@ def create_default_storage_account(self, vm_dict=None):
sku = self.storage_models.Sku(name=self.storage_models.SkuName.standard_lrs)
sku.tier = self.storage_models.SkuTier.standard
kind = self.storage_models.Kind.storage
# pylint: disable=missing-kwoa
parameters = self.storage_models.StorageAccountCreateParameters(sku=sku, kind=kind, location=self.location)
self.log("Creating storage account {0} in location {1}".format(storage_account_name, self.location))
self.results['actions'].append("Created storage account {0}".format(storage_account_name))
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/azure_rm_virtualmachinescaleset.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,7 @@ def exec_module(self, **kwargs):
plan=plan,
virtual_machine_profile=self.compute_models.VirtualMachineScaleSetVMProfile(
os_profile=os_profile,
# pylint: disable=missing-kwoa
storage_profile=self.compute_models.VirtualMachineScaleSetStorageProfile(
os_disk=self.compute_models.VirtualMachineScaleSetOSDisk(
managed_disk=managed_disk,
Expand Down

0 comments on commit beb74c1

Please sign in to comment.