mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-31 00:31:19 +00:00
Initialized more_options variable to avoid uninitialized error message
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user