mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-04 22:21:36 +09:00
1 parent
782e225219
commit
b44ba1cdd1
1 file changed
+6
-2
@@ -55,8 +55,12 @@ module OpenNebula
|
||||
@one_pool = nil
|
||||
|
||||
if @client
|
||||
info = Nokogiri::XML(@client.call('user.info', -1))
|
||||
@user_id = Integer(info.xpath('/USER/ID').text)
|
||||
rc = @client.call('user.info', -1)
|
||||
|
||||
unless OpenNebula.is_error?(rc)
|
||||
info = Nokogiri::XML(rc)
|
||||
@user_id = Integer(info.xpath('/USER/ID').text)
|
||||
end
|
||||
end
|
||||
|
||||
super('DOCUMENT_POOL', 'DOCUMENT', @client)
|
||||
|
||||
Reference in new issue
Block a user