From 24d81c3019987c6295a65bb1b70b5bc4dc85d398 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 26 Sep 2012 07:43:12 +0000 Subject: [PATCH] change version and json dependence git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13897 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/xCAT-wsapi/xcatws.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index 41090761d..25e932469 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -108,8 +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 = 'html'; - addPageContent($q->p("JSON perl module missing. Install perl-JSON before using the xCAT REST web services API.")); + addPageContent('{"data":"JSON perl module missing. Install perl-JSON before using the xCAT REST web services API."}'); sendResponseMsg($STATUS_SERVICE_UNAVAILABLE); } }