lib/testlab/network/status.rb in testlab-0.7.6 vs lib/testlab/network/status.rb in testlab-0.8.0

- old
+ new

@@ -46,10 +46,10 @@ exit_code = self.node.ssh.exec(%(sudo brctl show #{self.bridge} 2>&1 | grep -i 'No such device'), :silence => true, :ignore_exit_status => true).exit_code if (exit_code == 0) :not_created else output = self.node.ssh.exec(%(sudo ifconfig #{self.bridge} 2>&1 | grep 'MTU'), :silence => true, :ignore_exit_status => true).output.strip - if ((output =~ /UP/) && (output =~ /RUNNING/)) + if ((output =~ /UP/) || (output =~ /RUNNING/)) :running else :stopped end end