From c58f6e361e1390153ab27215cbd14ef7ae91f508 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Mon, 29 Oct 2012 07:42:42 +0000 Subject: [PATCH] removed the spaces in kit.conf git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14143 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kit.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index 9e040593d..66cc126e8 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -841,6 +841,10 @@ sub addkit ($key,$value) = split /=/, $line; } + # Remove spaces in each lines. + $key =~s/^\s+|\s+$//g; + $value =~s/^\s+|\s+$//g; + # Add each attribute to different hash. if ( $sec =~ /KIT$/) { if ( $key =~ /kitname/ ) {