From a71a6c40b0f9cd3d68b783b2e7524a82deb32a2b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 9 Aug 2018 09:23:40 -0400 Subject: [PATCH] fix configfpc with no gateway --- xCAT-server/lib/xcat/plugins/ipmi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 7b36e21e1..08606ce27 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -936,7 +936,7 @@ sub setnetinfo { } @cmd = (0x01, $channel_number, 0x6, @mask); } - } elsif ($subcommand =~ m/gateway/) { + } elsif ($subcommand =~ m/gateway/ and $argument) { my $gw = inet_ntoa(inet_aton($argument)); my @mask = split /\./, $gw; foreach (0 .. 3) {