From c92baa6cd223c9bfd5aad877aa09e4b9271cd287 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 24 Feb 2011 12:31:57 +0100 Subject: [PATCH] feature #495: Change user_flag for pools --- src/sunstone/models/SunstoneServer.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/sunstone/models/SunstoneServer.rb b/src/sunstone/models/SunstoneServer.rb index fbb9422c82..be52bde555 100644 --- a/src/sunstone/models/SunstoneServer.rb +++ b/src/sunstone/models/SunstoneServer.rb @@ -14,8 +14,6 @@ # limitations under the License. # #--------------------------------------------------------------------------- # -# TBD Change path for intallation tree - ONE_LOCATION = ENV["ONE_LOCATION"] if !ONE_LOCATION @@ -24,7 +22,6 @@ else VAR_LOCATION = ONE_LOCATION+"/var" end -#require 'OpenNebulaJSON' require 'models/OpenNebulaJSON' include OpenNebulaJSON @@ -61,9 +58,8 @@ class SunstoneServer ############################################################################ # ############################################################################ - def get_pool(kind, user_id) - user_flag = user_id=="0" ? -2 : -1 - + def get_pool(kind) + user_flag = -1 pool = case kind when "cluster" then ClusterPoolJSON.new(@client) when "host" then HostPoolJSON.new(@client)