From dfb97b27280f5085e65560cd0da83a45379629d0 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 25 Jul 2017 20:23:17 +0530 Subject: [PATCH] Remove excessive imports from cloudformation_facts (#27209) Fix removes excessive imports from cloudformation_facts module. Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/cloud/amazon/cloudformation_facts.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/cloudformation_facts.py b/lib/ansible/modules/cloud/amazon/cloudformation_facts.py index 49183ced0c5..9795ddf6cbb 100644 --- a/lib/ansible/modules/cloud/amazon/cloudformation_facts.py +++ b/lib/ansible/modules/cloud/amazon/cloudformation_facts.py @@ -151,12 +151,13 @@ try: except ImportError: HAS_BOTO3 = False -from ansible.module_utils.ec2 import get_aws_connection_info, ec2_argument_spec +from ansible.module_utils.ec2 import get_aws_connection_info, ec2_argument_spec, boto3_conn, camel_dict_to_snake_dict from ansible.module_utils.basic import AnsibleModule from functools import partial import json import traceback + class CloudFormationServiceManager: """Handles CloudFormation Services""" @@ -286,9 +287,6 @@ def main(): result['changed'] = False module.exit_json(**result) -# import module snippets -from ansible.module_utils.basic import * -from ansible.module_utils.ec2 import * if __name__ == '__main__': main()