From c7a5e9d4ebe17ad78762bfc4572521645c5c682e Mon Sep 17 00:00:00 2001 From: Ryan Brown Date: Thu, 21 Jun 2018 14:50:09 -0400 Subject: [PATCH] Remove unused imports from aws_direct_connect_connection module (#41802) * Remove unused imports from aws_direct_connect_connection module * Fix tuple notation --- .../modules/cloud/amazon/aws_direct_connect_connection.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/aws_direct_connect_connection.py b/lib/ansible/modules/cloud/amazon/aws_direct_connect_connection.py index 1067668b559..40aede0d048 100644 --- a/lib/ansible/modules/cloud/amazon/aws_direct_connect_connection.py +++ b/lib/ansible/modules/cloud/amazon/aws_direct_connect_connection.py @@ -147,8 +147,7 @@ connection: import traceback from ansible.module_utils.aws.core import AnsibleAWSModule -from ansible.module_utils.ec2 import (camel_dict_to_snake_dict, ec2_argument_spec, HAS_BOTO3, - get_aws_connection_info, boto3_conn, AWSRetry) +from ansible.module_utils.ec2 import (camel_dict_to_snake_dict, AWSRetry) from ansible.module_utils.aws.direct_connect import (DirectConnectError, delete_connection, associate_connection_and_lag, disassociate_connection_and_lag) @@ -279,8 +278,7 @@ def ensure_absent(client, connection_id): def main(): - argument_spec = ec2_argument_spec() - argument_spec.update(dict( + argument_spec = dict( state=dict(required=True, choices=['present', 'absent']), name=dict(), location=dict(), @@ -288,7 +286,7 @@ def main(): link_aggregation_group=dict(), connection_id=dict(), forced_update=dict(type='bool', default=False) - )) + ) module = AnsibleAWSModule( argument_spec=argument_spec,