1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

feature #495: Change user_flag for pools

This commit is contained in:
Daniel Molina 2011-02-24 12:31:57 +01:00
parent d3c19cc91a
commit c92baa6cd2

View File

@ -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)