Fix pylint warnings in cloud/clouds/ec2.py

This commit is contained in:
Rafael Uzarowski 2015-07-09 10:49:41 +02:00
parent 2be0b541ae
commit 54f2bbee1c

View File

@ -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