mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 04:10:46 +00:00
Bug #4693 switchdiscover -w return wrong info if no switch discovered
This commit is contained in:
@ -390,6 +390,12 @@ sub process_request {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!($result)) {
|
||||
send_msg( \%request, 0, " No switch found ");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
my $display_done = 0;
|
||||
if (exists($globalopt{r})) {
|
||||
@ -609,7 +615,7 @@ sub nmap_scan {
|
||||
|
||||
my $ccmd;
|
||||
|
||||
send_msg($request, 0, "Discovering switches using nmap. It may take long time...");
|
||||
send_msg($request, 0, "Discovering switches using nmap for @$ranges. It may take long time...");
|
||||
#################################################
|
||||
# If --range options, take iprange, if noderange is defined
|
||||
# us the ip addresses of the nodes. If none is define, use the
|
||||
|
Reference in New Issue
Block a user