mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 03:30:22 -07:00
Remove excessive imports from cloudformation_facts (#27209)
Fix removes excessive imports from cloudformation_facts module. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
df8fde4d78
commit
dfb97b2728
1 changed files with 2 additions and 4 deletions
|
@ -151,12 +151,13 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAS_BOTO3 = False
|
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 ansible.module_utils.basic import AnsibleModule
|
||||||
from functools import partial
|
from functools import partial
|
||||||
import json
|
import json
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
|
||||||
class CloudFormationServiceManager:
|
class CloudFormationServiceManager:
|
||||||
"""Handles CloudFormation Services"""
|
"""Handles CloudFormation Services"""
|
||||||
|
|
||||||
|
@ -286,9 +287,6 @@ def main():
|
||||||
result['changed'] = False
|
result['changed'] = False
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# import module snippets
|
|
||||||
from ansible.module_utils.basic import *
|
|
||||||
from ansible.module_utils.ec2 import *
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue