Enable RANDOM_PASSWD importing wild

Hi,

Is there a way to setup VNC RANDOM_PASSWD when importing a wild vm from vcenter?.

I added on this file /usr/lib/one/ruby/vcenter_driver/virtual_machine.

str << " RANDOM_PASSWD =\"yes\"\n"

The password is generated but it is not added to the VM config. Maybe changing the importer?.

GRAPHICS=[
  LISTEN="0.0.0.0",
  PASSWD="cc3c45a759c4301d6de5c2055f5ad4a4ee36e099",
  PORT="5908",
  RANDOM_PASSWD="yes",
  TYPE="vnc" ]

Thanks!.

Well, if anyone stumbles upon this, you can do this by defining the key and adding this line in /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb

{:key => "remotedisplay.vnc.passwd", :value => vnc_passwd},

If there is a better way for doing this, please let me know.

Thanks!.