lib/testlab/container.rb in testlab-1.22.0 vs lib/testlab/container.rb in testlab-1.22.1

- old
+ new

@@ -158,21 +158,21 @@ super(*args) @ui.logger.debug { "Container '#{self.id}' Loaded" } if self.priority.nil? && (self.template == false) $priority_counter ||= 0 - self.priority ||= (1000 - $priority_counter) + self.priority = (1000 - $priority_counter) $priority_counter += 1 end self.tags ||= [ self.id ] if !self.inherit.nil? @ui.logger.debug { "INHERIT: #{self.inherit}" } parent = TestLab::Container.first(self.inherit) if parent.nil? - raise ContainerError, "Could not find the container you specified to inherit attributes from!" + raise ContainerError, "Could not find the container you specified to inherit attributes from! (#{self.inherit.inspect})" end # Inherit the containers attributes parent.attributes.reject{ |k,v| [:id, :node_id, :inherit, :template, :priority].include?(k) }.each do |key, value| self.send("#{key}=", (value.dup rescue value))