VMware: fix for vmware_guest_file_operation binary file (#57614)
This commit is contained in:
parent
66a5ed64ca
commit
262c9ffdb6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue