Update vsphere_copy.py to use new style module_utils import
This commit is contained in:
parent
8ba11e97e2
commit
9f9422fcb5
1 changed files with 3 additions and 2 deletions
|
@ -149,6 +149,7 @@ def main():
|
|||
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)
|
||||
|
||||
# this is magic, see lib/ansible/module_common.py
|
||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
||||
# Import module snippets
|
||||
from ansible.module_utils.basic import *
|
||||
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue