search for: storage_volumes_pend

Displaying 2 results from an estimated 2 matches for "storage_volumes_pend".

2010 Sep 02
1
[PATCH 1/1] Introduce an option to always pxe-boot a vm.
...TWORK + if boot_device==BOOT_DEV_NETWORK_ALWAYS + PXE_ALWAYS_OPTION_VALUE + elsif boot_device==BOOT_DEV_NETWORK PXE_OPTION_VALUE elsif boot_device==BOOT_DEV_HD HD_OPTION_VALUE @@ -464,7 +469,9 @@ class Vm < ActiveRecord::Base self.storage_volumes=@storage_volumes_pending @storage_volumes_pending = [] end - errors.add("nics", "must specify at least one network if pxe booting off a network") unless boot_device != BOOT_DEV_NETWORK || nics.size > 0 + #errors.add("nics", "must specify at least one network if pxe...
2009 Aug 04
3
[PATCH server] require at least one vm network if pxe booting
...+++++++++++++++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/app/models/vm.rb b/src/app/models/vm.rb index 3e0a6fa..9d326ac 100644 --- a/src/app/models/vm.rb +++ b/src/app/models/vm.rb @@ -464,6 +464,8 @@ class Vm < ActiveRecord::Base self.storage_volumes=@storage_volumes_pending @storage_volumes_pending = [] end + errors.add("nics", "must specify at least one network if pxe booting off a network") unless boot_device == BOOT_DEV_NETWORK && nics.size > 0 + end end diff --git a/src/app/views/vm/_form.rhtml b/src/app/views...