1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

fix a bug setting quota configuration

This commit is contained in:
Javi Fontan 2011-12-01 18:03:16 +00:00
parent 2f98aad264
commit d1054d465e

View File

@ -91,7 +91,15 @@ class Quota
def initialize def initialize
conf = YAML.load_file(CONF_FILE) conf = YAML.load_file(CONF_FILE)
@conf=CONF.merge(conf) {|key,h1,h2| @conf=CONF.merge(conf) {|key,h1,h2|
h1.merge(h2) if h1.instance_of?(Hash) && h2.instance_of?(Hash) if h1.instance_of?(Hash) && h2.instance_of?(Hash)
h1.merge(h2)
else
if h2
h2
else
h1
end
end
} }
@client = OpenNebula::Client.new @client = OpenNebula::Client.new