vmware / pyvmomi-community-samples

A place for community contributed samples for the pyVmomi library.
Apache License 2.0
1.01k stars 922 forks source link

args.vm_pwd should be args.vm_password #715

Closed we-shall closed 1 year ago

we-shall commented 1 year ago

Describe the bug

The command execute_program_in_vm.py fails with

Traceback (most recent call last):
  File "commands/execute_program_in_vm.py", line 119, in <module>
    main()
  File "commands/execute_program_in_vm.py", line 70, in main
    username=args.vm_user, password=args.vm_pwd
AttributeError: 'Namespace' object has no attribute 'vm_pwd'
make: *** [Makefile:164: mkdir-artifacts] Error 1

Reproduction steps

  1. Just the run the command
  2. ...

Expected behavior

Instead of using the args.vm_pwd use args.vm_password and the program will work fine

Additional context

No response

DanielDraganov commented 1 year ago

Fixed in https://github.com/vmware/pyvmomi-community-samples/pull/709