From 92875f0e6fc25e61de4d29bf56d08376d9feeee1 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sat, 21 Dec 2019 22:19:09 +0000 Subject: [PATCH] fix #671 need to discover nodes on CLI discover --- bin/netdisco-do | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/netdisco-do b/bin/netdisco-do index 6f824282..3e063d90 100755 --- a/bin/netdisco-do +++ b/bin/netdisco-do @@ -134,7 +134,7 @@ foreach my $host (@hostlist) { action => $action, device => $dev, port => $port, - subaction => $extra, + subaction => ($extra || (($action eq 'discover') ? 'with-nodes' : undef)), username => ($ENV{USER} || 'netdisco-do'), }; }