From d329307578c2c4ee9ccf213bb59050182c1309b0 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 20 Jun 2013 03:42:51 +0000 Subject: [PATCH] Fixing bug 3636 for error msg outputing git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16708 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kit.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index e495d0a9d..272dd37c0 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -4312,7 +4312,9 @@ sub check_framework } if (!$kitcompat) { - print "Warning: Could not determine the kit compatible framework values for \'$kitbasename\' from the kit.conf file. Continuing for now.\n"; + my %rsp; + push @{ $rsp{data} }, "Could not determine the kit compatible framework values for \'$kitbasename\' from the kit.conf file. Continuing for now."; + xCAT::MsgUtils->message( "I", \%rsp, $::CALLBACK ); return 0; } @@ -4329,6 +4331,9 @@ sub check_framework } } } - print "Error: The kit named \'$kitbasename\' is not compatible with this version of the addkit command. \'$kitbasename\' is compatible with \'$kitcompat\' and the addkit command is compatible with \'$::COMPATIBLE_KITFRAMEWORKS\'\n"; + + my %rsp; + push @{ $rsp{data} }, "The kit named \'$kitbasename\' is not compatible with this version of the buildkit command. \'$kitbasename\' is compatible with \'$kitcompat\' and the buildkit command is compatible with \'$::COMPATIBLE_KITFRAMEWORKS\'"; + xCAT::MsgUtils->message( "E", \%rsp, $::CALLBACK ); return 1; }