Skip to content

Commit 9f9422f

Browse files
committed
Update vsphere_copy.py to use new style module_utils import
1 parent 8ba11e9 commit 9f9422f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cloud/vmware/vsphere_copy.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def main():
149149
else:
150150
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)
151151

152-
# this is magic, see lib/ansible/module_common.py
153-
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
152+
# Import module snippets
153+
from ansible.module_utils.basic import *
154+
154155
main()

0 commit comments

Comments
 (0)