2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00

Merge pull request #2941 from whowutwut/nodestat_cleanup

Initialized more_options variable to avoid uninitialized error message [cleanup]
This commit is contained in:
Mark Gurevich
2017-06-15 11:22:27 -04:00
committed by GitHub

View File

@@ -649,7 +649,10 @@ sub process_request_nmap {
# get additional options from site table
my @nmap_options = xCAT::TableUtils->get_site_attribute("nmapoptions");
my $more_options = $nmap_options[0];
my $more_options = "";
if (defined($nmap_options[0])) {
$more_options = $nmap_options[0];
}
foreach my $ip6 (0, 1) { #first pass, ipv4, second pass ipv6
if ($ip6 and scalar(@ip6s)) {