mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix pylint warnings in cloud/clouds/ec2.py
This commit is contained in:
parent
2be0b541ae
commit
54f2bbee1c
@ -1252,8 +1252,12 @@ def _list_interface_private_addresses(eni_desc):
|
||||
|
||||
return addresses
|
||||
|
||||
def _modify_interface_source_dest_check(eni_id, source_dest_check=True):
|
||||
|
||||
def _modify_interface_source_dest_check(eni_id, source_dest_check=True):
|
||||
'''
|
||||
Change the state of SourceDestCheck Flag in the interface
|
||||
with id eni_id to the value of source_dest_check
|
||||
'''
|
||||
params = {'Action': 'ModifyNetworkInterfaceAttribute',
|
||||
'NetworkInterfaceId': eni_id,
|
||||
'SourceDestCheck.Value': source_dest_check}
|
||||
@ -1276,6 +1280,7 @@ def _modify_interface_source_dest_check(eni_id, source_dest_check=True):
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def _associate_eip_with_interface(eni_id, eip_id, private_ip=None):
|
||||
'''
|
||||
Accept the id of a network interface, and the id of an elastic ip
|
||||
|
Loading…
Reference in New Issue
Block a user