Have Template support the more elegant TZUtils approach for translation to Windows timezones from POSIX

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14731 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-01-02 20:09:59 +00:00
parent 7307a550ef
commit e7a31a057b

View File

@ -1,4 +1,5 @@
#!/usr/bin/perl
use xCAT::TZUtils;
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
package xCAT::Template;
@ -185,6 +186,7 @@ sub subvars {
$inc =~ s/#INCLUDE_PTRNLIST:([^#^\n]+)#/includefile($1,0,2)/eg;
$inc =~ s/#INCLUDE_RMPKGLIST:([^#^\n]+)#/includefile($1,0,3)/eg;
$inc =~ s/#INCLUDE:([^#^\n]+)#/includefile($1, 0, 0)/eg;
$inc =~ s/#WINTIMEZONE#/xCAT::TZUtils::get_wintimezone()/e;
$inc =~ s/#HOSTNAME#/$node/g;
my $nrtab = xCAT::Table->new("noderes");