Remove unused imports from aws_direct_connect_connection module (#41802)
* Remove unused imports from aws_direct_connect_connection module * Fix tuple notation
This commit is contained in:
parent
07738cc848
commit
c7a5e9d4eb
1 changed files with 3 additions and 5 deletions
|
@ -147,8 +147,7 @@ connection:
|
||||||
|
|
||||||
import traceback
|
import traceback
|
||||||
from ansible.module_utils.aws.core import AnsibleAWSModule
|
from ansible.module_utils.aws.core import AnsibleAWSModule
|
||||||
from ansible.module_utils.ec2 import (camel_dict_to_snake_dict, ec2_argument_spec, HAS_BOTO3,
|
from ansible.module_utils.ec2 import (camel_dict_to_snake_dict, AWSRetry)
|
||||||
get_aws_connection_info, boto3_conn, AWSRetry)
|
|
||||||
from ansible.module_utils.aws.direct_connect import (DirectConnectError, delete_connection,
|
from ansible.module_utils.aws.direct_connect import (DirectConnectError, delete_connection,
|
||||||
associate_connection_and_lag, disassociate_connection_and_lag)
|
associate_connection_and_lag, disassociate_connection_and_lag)
|
||||||
|
|
||||||
|
@ -279,8 +278,7 @@ def ensure_absent(client, connection_id):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
argument_spec = ec2_argument_spec()
|
argument_spec = dict(
|
||||||
argument_spec.update(dict(
|
|
||||||
state=dict(required=True, choices=['present', 'absent']),
|
state=dict(required=True, choices=['present', 'absent']),
|
||||||
name=dict(),
|
name=dict(),
|
||||||
location=dict(),
|
location=dict(),
|
||||||
|
@ -288,7 +286,7 @@ def main():
|
||||||
link_aggregation_group=dict(),
|
link_aggregation_group=dict(),
|
||||||
connection_id=dict(),
|
connection_id=dict(),
|
||||||
forced_update=dict(type='bool', default=False)
|
forced_update=dict(type='bool', default=False)
|
||||||
))
|
)
|
||||||
|
|
||||||
module = AnsibleAWSModule(
|
module = AnsibleAWSModule(
|
||||||
argument_spec=argument_spec,
|
argument_spec=argument_spec,
|
||||||
|
|
Loading…
Reference in a new issue