mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
(cherry picked from commit b44ba1cdd1c0fbed59c863f47fdb99c38cbbb9d5)
This commit is contained in:
parent
c2b7cbca4f
commit
3e4f1c49bb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user