lib/testlab/node.rb in testlab-0.6.15 vs lib/testlab/node.rb in testlab-0.6.16

- old
+ new

@@ -39,15 +39,16 @@ attribute :provisioners, :default => Array.new attribute :config, :default => Hash.new def initialize(*args) + @ui = TestLab.ui + super(*args) - raise NodeError, "You must specify a provider class!" if self.provider.nil? - - @ui = TestLab.ui @provider = self.provider.new(self.config, @ui) + + raise NodeError, "You must specify a provider class!" if self.provider.nil? end end end