Scott Seago
2009-May-22 16:52 UTC
[Ovirt-devel] [PATCH server] fix for BZ #478723: move to new hardware pool for storage
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
Jason Guiditta
2009-May-28 16:15 UTC
[Ovirt-devel] [PATCH server] fix for BZ #478723: move to new hardware pool for storage
ACK, can now move to new hardware pool On Fri, May 22, 2009 at 12:52 PM, Scott Seago <sseago at redhat.com> wrote:> 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 > > _______________________________________________ > Ovirt-devel mailing list > Ovirt-devel at redhat.com > https://www.redhat.com/mailman/listinfo/ovirt-devel >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090528/c474a697/attachment.htm>