1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-24 02:03:52 +03:00

Cleaning old code and debug messages

This commit is contained in:
Javi Fontan 2010-07-26 23:08:52 +02:00
parent aa33d18c9e
commit 8244182b48
2 changed files with 2 additions and 7 deletions

View File

@ -36,9 +36,6 @@ class Quota
}
}.merge(conf)
STDERR.puts conf.inspect
STDERR.puts @conf.inspect
@defaults=@conf[:defaults]
@usage=OneUsage.new(@client)
@ -68,13 +65,12 @@ class Quota
}
quotas=@table.filter(:uid => uid)
pp quotas.first
if quotas.first
STDERR.puts "updating"
#STDERR.puts "updating"
quotas.update(data)
else
STDERR.puts "inserting"
#STDERR.puts "inserting"
@table.insert(data.merge!(:uid => uid))
end
end

View File

@ -26,7 +26,6 @@ class SimpleAuth
# * password: password stored in OpenNebula dabatase
# * token: password sent by the client trying to connect
def auth(user_id, user, password, token)
t_user, t_password=token.split(':')
auth=(password==token)
auth="Invalid credentials" if auth!=true or token=='-'
auth