Merge "Use 'discover' instead of 'vlans' commands for DHCP discover"

This commit is contained in:
Jenkins 2016-08-29 14:23:36 +00:00 committed by Gerrit Code Review
commit 652622f203
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ module MCollective
format = request.data[:format] || "json"
timeout = request.data[:timeout] || 2
repeat = request.data[:repeat] || 1
cmd = "dhcpcheck vlans '#{interfaces}' --timeout=#{timeout} --format=#{format} --repeat=#{repeat} "
cmd = "dhcpcheck discover '#{interfaces}' --timeout=#{timeout} --format=#{format} --repeat=#{repeat} "
reply[:status] = run(cmd, :stdout => :out, :stderr => :err)
end