From 9110102e1ea88de6915aabfe9d0c56b0a7528ee1 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 26 Sep 2012 07:18:39 +0000 Subject: [PATCH] change version and json dependence git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13895 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/xCAT-wsapi/xcatws.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index f50659f1b..f3b3d40ed 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -15,7 +15,7 @@ use Data::Dumper; #turn on or off the debugging output my $DEBUGGING = 0; -my $VERSION = "2.7"; +my $VERSION = "2.8"; my $q = CGI->new; my $url = $q->url; @@ -108,6 +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'; addPageContent($q->p("JSON perl module missing. Install perl-JSON before using the xCAT REST web services API.")); sendResponseMsg($STATUS_SERVICE_UNAVAILABLE); }