From f5126227ceaf0d4cd03769261b3acb9e5c22208d Mon Sep 17 00:00:00 2001 From: yangsong Date: Fri, 23 Jun 2017 03:18:03 -0500 Subject: [PATCH] refine the PR 3268:support service node pool (#3323) Fix the issue that grub2 config file is wrong when node.tftpserver="" --- xCAT-server/lib/xcat/plugins/anaconda.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 5b61b8326..fb2a7cd19 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -607,7 +607,7 @@ sub mknetboot $xcatmaster = '!myipfn!'; #allow service nodes to dynamically nominate themselves as a good contact point, this is of limited use in the event that xcat is not the dhcp/tftp server } - if ($ient and $ient->{tftpserver}) + if ($ient and $ient->{tftpserver} and $ient->{tftpserver} ne '') { $imgsrv = $ient->{tftpserver}; }