From 157b6b6fdd1aad140b205afd9e549b1b748c3934 Mon Sep 17 00:00:00 2001 From: jjhua Date: Fri, 25 Jan 2013 02:07:20 +0000 Subject: [PATCH] fixed bug 3309. export the empty varialbe git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14989 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Template.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index f9d13db0c..21028f7e8 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -1093,9 +1093,9 @@ sub subvars_for_mypostscript { foreach $line ( @lines ) { if( $line =~ /^([^#]+)=[\s]*$/ ) { my $key=$1; - #$inc =~ s/$key=([\s\n]+)/$key=''\n/g; - $inc =~ s/$key=([\s\n]+)//g; - $inc =~ s/export $key//g; + $inc =~ s/$key=([\s\n]+)/$key=''\n/g; + #$inc =~ s/$key=([\s\n]+)//g; + #$inc =~ s/export $key//g; } }