2
0
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:
Jarrod Johnson
2019-08-07 13:02:39 -04:00
parent 8d5df5d6ca
commit 1035841b5d

View File

@@ -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/;