1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

Bug getting hostname from history

git-svn-id: http://svn.opennebula.org/trunk@19 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Javier Fontán Muiños 2008-06-24 12:53:16 +00:00
parent 5dc3f4ed04
commit 4eef1f1d4b

View File

@ -336,7 +336,7 @@ module ONE
my_db.close if !db
if res and res[0]
if res and res[0] and res[1] and res[1][-1]
return hostname=res[1][-1]["hostname"]
else
return nil