mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	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:
		| @@ -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"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user