1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #1020: Bug in result_str in vmware im

This commit is contained in:
Tino Vazquez 2011-12-23 14:00:44 +01:00
parent 4a63ee16c7
commit 27fa295981

View File

@ -73,21 +73,21 @@ def do_action(cmd)
end
end
@result_str = ""
def add_info(name, value)
value = "0" if value.nil? or value.to_s.empty?
result_str << "#{name}=#{value} "
@result_str << "#{name}=#{value} "
end
def print_info
puts result_str
puts @result_str
end
# ######################################################################## #
# Main Procedure #
# ######################################################################## #
result_str = ""
host = ARGV[2]
if !host