Harshavardhana
2009-Jul-28 13:52 UTC
[Ovirt-devel] [PATCH 4/5] Added glusterfs for new search controller parameter
---
src/app/controllers/search_controller.rb | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/app/controllers/search_controller.rb
b/src/app/controllers/search_controller.rb
index 0fb6456..fb78418 100644
--- a/src/app/controllers/search_controller.rb
+++ b/src/app/controllers/search_controller.rb
@@ -37,17 +37,23 @@ class SearchController < ApplicationController
"NfsStoragePool" => {:controller =>
"storage",
:show_action => "show",
:searched => true},
+ "GlusterfsStoragePool" => {:controller =>
"storage" ,
+ :show_action => "show",
+ :searched => true},
"IscsiStorageVolume" => {:controller =>
"storage_volume",
:show_action => "show",
:searched => false},
"NfsStorageVolume" => {:controller =>
"storage_volume",
:show_action => "show",
:searched => false},
+ "GlusterfsStorageVolume" => {:controller =>
"storage_volume",
+ :show_action => "show",
+ :searched => false},
"LvmStorageVolume" => {:controller =>
"storage_volume",
:show_action => "show",
:searched => false}}
- MULTI_TYPE_MODELS = {"StoragePool" =>
["IscsiStoragePool", "NfsStoragePool"]}
+ MULTI_TYPE_MODELS = {"StoragePool" =>
["IscsiStoragePool", "NfsStoragePool",
"GlusterfsStoragePool"]}
def single_result
--
1.6.0.6