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
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue