VMware: fix for vmware_guest_file_operation binary file (#57614)

This commit is contained in:
Stéphane Travassac 2019-07-15 15:35:54 +02:00 committed by Abhijeet Kasurde
parent 66a5ed64ca
commit 262c9ffdb6

View file

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