change version and json dependence

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13896 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-09-26 07:25:01 +00:00
parent 9110102e1e
commit ece9baa5a4

View File

@ -108,7 +108,7 @@ if ($queryhash{'format'}) {
# require JSON dynamically and let them know if it is not installed
my $jsoninstalled = eval { require JSON; };
unless ($jsoninstalled) {
$format = 'text/html';
$format = 'html';
addPageContent($q->p("JSON perl module missing. Install perl-JSON before using the xCAT REST web services API."));
sendResponseMsg($STATUS_SERVICE_UNAVAILABLE);
}