mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-02 16:28:25 +00:00
Fix makedhcp -n
The httpport site variable was being incorrectly interpolated into a string.
This commit is contained in:
@@ -2450,10 +2450,10 @@ sub addnet
|
||||
my $mask = shift;
|
||||
my $nic;
|
||||
my $domain;
|
||||
my $httpport="80";
|
||||
my $httpport="";
|
||||
my @hports=xCAT::TableUtils->get_site_attribute("httpport");
|
||||
if ($hports[0]){
|
||||
$httpport=$hports[0];
|
||||
$httpport=":".$hports[0];
|
||||
}
|
||||
my $firstoctet = $net;
|
||||
$firstoctet =~ s/^(\d+)\..*/$1/;
|
||||
|
Reference in New Issue
Block a user