mitchellh / virtualbox

[ABANDONED] Create and modify virtual machines in VirtualBox using pure ruby.
http://mitchellh.github.com/virtualbox/
MIT License
245 stars 45 forks source link

VM.save updated the VM one changed attribute at a time, rather than in one command #8

Closed KieranP closed 14 years ago

KieranP commented 14 years ago

As the title says, if you do this for example:

vm = VirtualBox::VM.find('Example VM')
vm.name = "Change me"
vm.ostype = "windowsxp"
vm.save

Expected:

vboxmanage managevm "Example VM" --name "Change Me" --ostype "windowsxp"

Actual:

vboxmanage managevm "Example VM" --name "Change Me"
vboxmanage managevm "Example VM" --ostype "windowsxp"

The problem of course becomes apparent when you start update 20+ attributes

mitchellh commented 14 years ago

Marked as a feature request because its not really a "bug" since it works, it just works in a way that is a bit annoying. This shouldn't be too hard to do, actually.

mitchellh commented 14 years ago

Feature done: http://github.com/mitchellh/virtualbox/commit/de027488f08fe09f4976dffb5654af57d30c73b7