[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Ovirt-devel] [PATCH] Fix how taskomatic adds NICs to the System prior to creating it in Cobbler.



Signed-off-by: Darryl L. Pierce <dpierce redhat com>
---
 wui/src/task-omatic/task_vm.rb |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/wui/src/task-omatic/task_vm.rb b/wui/src/task-omatic/task_vm.rb
index fca978f..3588224 100644
--- a/wui/src/task-omatic/task_vm.rb
+++ b/wui/src/task-omatic/task_vm.rb
@@ -159,9 +159,7 @@ def create_vm(task)
         if provisioning_arr[1]==Vm::PROFILE_PREFIX
           system = Cobbler::System.new('name' => vm.uuid,
                                        'profile' => provisioning_arr[2])
-          system.interfaces=[Cobbler::NetworkInterface.new(
-               ["intf",{'mac_address' => vm.vnic_mac_addr}]
-          )]
+          system.interfaces=[Cobbler::NetworkInterface.new({'mac_address' => vm.vnic_mac_addr})]
           system.save
         elsif provisioning_arr[1]==Vm::IMAGE_PREFIX
           #FIXME handle cobbler images
-- 
1.5.5.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]