mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix pylint warnings in cloud/clouds/ec2.py
This commit is contained in:
parent
2be0b541ae
commit
54f2bbee1c
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue