VMware: fix for vmware_guest_file_operation binary file (#57614)

pull/59104/head
Stéphane Travassac 5 years ago committed by Abhijeet Kasurde
parent 66a5ed64ca
commit 262c9ffdb6

@ -346,7 +346,7 @@ class VmwareGuestFileManager(PyVmomi):
self.module.fail_json(msg="copy does not support copy of directory: %s" % src) self.module.fail_json(msg="copy does not support copy of directory: %s" % src)
data = None data = None
with open(b_src, "r") as local_file: with open(b_src, "rb") as local_file:
data = local_file.read() data = local_file.read()
file_size = os.path.getsize(b_src) file_size = os.path.getsize(b_src)

Loading…
Cancel
Save