lib/openvz/inventory.rb in openvz-1.5.4 vs lib/openvz/inventory.rb in openvz-1.5.5
- old
+ new
@@ -1,7 +1,9 @@
module OpenVZ
class Inventory < ConfigHash
- def initialize()
+ def initialize(data={})
+ @data = {}
+ update!(data)
@vzlist = "/usr/sbin/vzlist"
end
def load
Util.execute("#{@vzlist} -a").each_line { |l|
\ No newline at end of file