lib/openvz/inventory.rb in openvz-1.5.3 vs lib/openvz/inventory.rb in openvz-1.5.4

- old
+ new

@@ -3,10 +3,10 @@ def initialize() @vzlist = "/usr/sbin/vzlist" end def load - Util.execute("#{@vzlist} -a").each { |l| + Util.execute("#{@vzlist} -a").each_line { |l| # inventarize a container object for each avaiable container. if l =~ /^\s+(\d+)\s+(.*)\s+(running|stopped)\s+(.*)\s\s(.*)$/ self[$1] = Container.new($1) end } \ No newline at end of file