From 5ecab2d7038174b9bd731bc8f03ef5cc4953653f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 11 Jan 2013 20:52:46 +0000 Subject: [PATCH] Repair JSON in web service (to_json is not imported to namespace on 'require', could do import, but just doing JSON:: to be clearer git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14866 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/xCAT-wsapi/xcatws.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index 25e932469..a4de8d5df 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -1829,7 +1829,7 @@ sub wrapJson { my $data = shift; my $json; $json->{'data'} = $data; - addPageContent(to_json($json)); + addPageContent(JSON::to_json($json)); } sub wrapHtml {