vmware-archive / rvc

RVC is a Linux console UI for vSphere, built on the RbVmomi bindings to the vSphere API.
MIT License
240 stars 48 forks source link

Minor --arguments issue with vm_guest.start_program #75

Open flands opened 11 years ago

flands commented 11 years ago

I recently ran into the following issue:

/10.16.199.136/ha-datacenter/vms/vcsa> vm_guest.start_program /10.16.199.136/ha-datacenter/vms/vcsa --program-path /usr/bin/sed --arguments "-i -e '/^## # rcntp/a server 10.16.199.2' /etc/ntp.conf" Trollop::CommandlineError: option '--arguments' needs a parameter

I was able to workaround the issue with the following (notice the space between the double quote and -i):

/10.16.199.136/ha-datacenter/vms/vcsa> vm_guest.start_program /10.16.199.136/ha-datacenter/vms/vcsa --program-path /usr/bin/sed --arguments " -i -e '/^## # rcntp/a server 10.16.199.2' /etc/ntp.conf" /10.16.199.136/ha-datacenter/vms/vcsa>