mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
bug when attributes are nil
git-svn-id: http://svn.opennebula.org/one/trunk@745 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
parent
c126e1b7dd
commit
876c510b10
@ -70,8 +70,10 @@ module OpenNebula
|
||||
str_line << n.name << "=[" << ind_enter
|
||||
|
||||
str_line << n.collect {|n2|
|
||||
if n2.class==REXML::Element
|
||||
ind_tab+n2.name+"="+n2.text
|
||||
if n2 && n2.class==REXML::Element
|
||||
str = ind_tab + n2.name + "="
|
||||
str += n2.text if n2.text
|
||||
str
|
||||
end
|
||||
}.compact.join(","+ind_enter)
|
||||
str_line<<" ]"
|
||||
|
Loading…
x
Reference in New Issue
Block a user