1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix ec2_metadata_facts documentation (#37546)

- ec2_metadata_facts does not extend `url`
- Remove url_argument_spec for ec2_metadata_facts
This commit is contained in:
Vinay Dandekar 2018-05-03 08:29:14 -04:00 committed by Ryan Brown
parent 261ad0aa87
commit ada2ea4387

View file

@ -26,8 +26,6 @@ description:
The module must be called from within the EC2 instance itself. The module must be called from within the EC2 instance itself.
notes: notes:
- Parameters to filter on ec2_metadata_facts may be added later. - Parameters to filter on ec2_metadata_facts may be added later.
extends_documentation_fragment:
- url
''' '''
EXAMPLES = ''' EXAMPLES = '''
@ -424,7 +422,7 @@ import time
from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils._text import to_text from ansible.module_utils._text import to_text
from ansible.module_utils.urls import fetch_url, url_argument_spec from ansible.module_utils.urls import fetch_url
socket.setdefaulttimeout(5) socket.setdefaulttimeout(5)
@ -538,10 +536,8 @@ class Ec2Metadata(object):
def main(): def main():
argument_spec = url_argument_spec()
module = AnsibleModule( module = AnsibleModule(
argument_spec=argument_spec, argument_spec={},
supports_check_mode=True, supports_check_mode=True,
) )