pyvmomi
pyvmomi copied to clipboard
Upload file to vm Error: [AttributeError: 'NoneType' object has no attribute 'fileManager']
Hi,
I'm trying to execute the example code to upload file to vm. But I'm getting below error: url = content.guestOperationsManager.fileManager.InitiateFileTransferToGuest(vm, creds, inputs['vm_path'], AttributeError: 'NoneType' object has no attribute 'fileManager'
VSphere login, reverting snapshot are working fine, but when I try to upload file to vm the above error is occuring.
How to resolve this issue. Any help would be appreciated.
Thanks, Manaswini