lib/specinfra/command/openbsd/base/routing_table.rb in specinfra-2.0.0.beta49 vs lib/specinfra/command/openbsd/base/routing_table.rb in specinfra-2.0.0.beta50
- old
+ new
@@ -1,8 +1,8 @@
class Specinfra::Command::Openbsd::Base::RoutingTable < Specinfra::Command::Base::RoutingTable
class << self
def check_has_entry(destination)
- "route -n show -gateway | egrep '(^default|#{destination})' | head -1"
+ "route -n show -gateway | egrep '^#{destination}' | head -1"
end
alias :get_entry :check_has_entry
end
end