Update vsphere_copy.py to use new style module_utils import
This commit is contained in:
parent
18878be584
commit
bfa9852fc7
1 changed files with 3 additions and 2 deletions
|
@ -149,6 +149,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg='Failed to upload', status=resp.status, reason=resp.reason, length=resp.length, version=resp.version, headers=resp.getheaders(), chunked=resp.chunked, url=url)
|
module.fail_json(msg='Failed to upload', status=resp.status, reason=resp.reason, length=resp.length, version=resp.version, headers=resp.getheaders(), chunked=resp.chunked, url=url)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# Import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue