mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
fix lint errors
This commit is contained in:
parent
1fecb6f923
commit
f0198cc39a
5 changed files with 26 additions and 25 deletions
|
@ -238,8 +238,8 @@ class AzureRMSubnet(AzureRMModuleBase):
|
|||
)
|
||||
if nsg:
|
||||
subnet.network_security_group = self.network_models.NetworkSecurityGroup(id=nsg.id,
|
||||
location=nsg.location,
|
||||
resource_guid=nsg.resource_guid)
|
||||
location=nsg.location,
|
||||
resource_guid=nsg.resource_guid)
|
||||
|
||||
else:
|
||||
# update subnet
|
||||
|
@ -250,8 +250,8 @@ class AzureRMSubnet(AzureRMModuleBase):
|
|||
if results['network_security_group'].get('id'):
|
||||
nsg = self.get_security_group(results['network_security_group']['name'])
|
||||
subnet.network_security_group = self.network_models.NetworkSecurityGroup(id=nsg.id,
|
||||
location=nsg.location,
|
||||
resource_guid=nsg.resource_guid)
|
||||
location=nsg.location,
|
||||
resource_guid=nsg.resource_guid)
|
||||
|
||||
self.results['state'] = self.create_or_update_subnet(subnet)
|
||||
elif self.state == 'absent':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue