Update vsphere_copy.py to use new style module_utils import

This commit is contained in:
Matt Martz 2015-06-30 13:45:53 -05:00
parent 8ba11e97e2
commit 9f9422fcb5

View file

@ -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()