From 1035841b5d00b589102476465a621688c8c5c7d4 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 7 Aug 2019 13:02:39 -0400 Subject: [PATCH] Fix makedhcp -n The httpport site variable was being incorrectly interpolated into a string. --- xCAT-server/lib/xcat/plugins/dhcp.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 04eeeca6c..a4aab1d8f 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -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/;