From 91a743e659ae006bf66b76f0ef7e75a703e6fa15 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 20 Jul 2010 02:08:09 +0000 Subject: [PATCH] add a sentence to handle the #HOSTNAME# keyword in the tmpl file git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6799 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Template.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index 1204ffe26..8bb16ddd7 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -88,6 +88,7 @@ sub subvars { $inc =~ s/#INCLUDE_NOP:([^#^\n]+)#/includefile($1,1,0)/eg; $inc =~ s/#INCLUDE_PKGLIST:([^#^\n]+)#/includefile($1,0,1)/eg; $inc =~ s/#INCLUDE:([^#^\n]+)#/includefile($1, 0, 0)/eg; + $inc =~ s/#HOSTNAME#/$node/eg; if ($tmplerr) {