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

Port to dual python2/python3 compat

This commit is contained in:
Toshio Kuratomi 2016-05-10 21:58:22 -07:00 committed by Matt Clay
parent e10b7e1773
commit 93fe022aa4

View file

@ -45,10 +45,10 @@ from ansible.module_utils.basic import AnsibleModule
def main(): def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec = dict( argument_spec=dict(
data=dict(required=False, default=None), data=dict(required=False, default=None),
), ),
supports_check_mode = True supports_check_mode=True
) )
result = dict(ping='pong') result = dict(ping='pong')
if module.params['data']: if module.params['data']: