lib/asbestos/host.rb in asbestos-0.0.5 vs lib/asbestos/host.rb in asbestos-0.0.6

- old
+ new

@@ -117,10 +117,10 @@ # # interface :internal, :eth4, 'bar' #=> address is "bar" # end # def interface(tag, if_names, address = nil, &block) - interfaces = [*@interfaces[tag], *if_names].compact + interfaces = [*@interfaces[tag], *if_names].compact.uniq raise "single address, #{address}, given for multiple interfaces, #{interfaces}, on host #{name}" if interfaces.length > 1 && address @interfaces[tag] = interfaces # determine the address for each interface