mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
whitespace change only, addresses the items pylint found
This commit is contained in:
parent
4f847e9158
commit
03e286fb51
@ -1321,7 +1321,6 @@ def private_ips_present(name, network_interface_name=None, network_interface_id=
|
|||||||
|
|
||||||
# Verify secondary private ips were properly assigned to ENI
|
# Verify secondary private ips were properly assigned to ENI
|
||||||
eni = __salt__['boto_ec2.get_network_interface'](**get_eni_args)
|
eni = __salt__['boto_ec2.get_network_interface'](**get_eni_args)
|
||||||
|
|
||||||
if eni and eni.get('result', {}).get('private_ip_addresses', None):
|
if eni and eni.get('result', {}).get('private_ip_addresses', None):
|
||||||
for eni_pip in eni['result']['private_ip_addresses']:
|
for eni_pip in eni['result']['private_ip_addresses']:
|
||||||
ret['changes']['new'].append(eni_pip['private_ip_address'])
|
ret['changes']['new'].append(eni_pip['private_ip_address'])
|
||||||
@ -1434,11 +1433,9 @@ def private_ips_absent(name, network_interface_name=None, network_interface_id=N
|
|||||||
|
|
||||||
# Verify secondary private ips were properly unassigned from ENI
|
# Verify secondary private ips were properly unassigned from ENI
|
||||||
eni = __salt__['boto_ec2.get_network_interface'](**get_eni_args)
|
eni = __salt__['boto_ec2.get_network_interface'](**get_eni_args)
|
||||||
|
|
||||||
if eni and eni.get('result', {}).get('private_ip_addresses', None):
|
if eni and eni.get('result', {}).get('private_ip_addresses', None):
|
||||||
for eni_pip in eni['result']['private_ip_addresses']:
|
for eni_pip in eni['result']['private_ip_addresses']:
|
||||||
ret['changes']['new'].append(eni_pip['private_ip_address'])
|
ret['changes']['new'].append(eni_pip['private_ip_address'])
|
||||||
|
|
||||||
ips_not_removed = []
|
ips_not_removed = []
|
||||||
for private_ip in private_ip_addresses:
|
for private_ip in private_ip_addresses:
|
||||||
if private_ip in ret['changes']['new']:
|
if private_ip in ret['changes']['new']:
|
||||||
|
Loading…
Reference in New Issue
Block a user