[Ovirt-devel] [PATCH server] fix for BZ #478723: move to new hardware pool for storage

Scott Seago sseago at redhat.com
Fri May 22 16:52:23 UTC 2009


I think the original reported error has long since been resolved, but this action is currently broken for another reason -- an incorrect classname was used for Storage in the controller.

Signed-off-by: Scott Seago <sseago at redhat.com>
---
 src/app/controllers/hardware_controller.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/app/controllers/hardware_controller.rb b/src/app/controllers/hardware_controller.rb
index 6d879b9..73ff744 100644
--- a/src/app/controllers/hardware_controller.rb
+++ b/src/app/controllers/hardware_controller.rb
@@ -189,7 +189,7 @@ class HardwareController < PoolController
   def additional_create_params
     ret_hash = {:resource_ids => params[:resource_ids]}
     ret_hash[:resource_type] = Host if params[:resource_type] == "hosts"
-    ret_hash[:resource_type] = Storage if params[:resource_type] == "storage"
+    ret_hash[:resource_type] = StoragePool if params[:resource_type] == "storage"
     ret_hash
   end
 
-- 
1.6.0.6




More information about the ovirt-devel mailing list