From a3b4489e219d5807133e67b5f2b10c320ecaf8a4 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Mon, 11 Mar 2013 14:05:30 -0400 Subject: Fixed python-requests compatibility issue. The Python REST client has been modified to parse JSON data using a method that is compatible with python-requests 1.1. The RPM spec file has been modified to require python-requests 1.1 package. Ticket #535 --- base/common/python/pki/system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'base/common/python/pki/system.py') diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py index 61ffbb9ff..f49cc402e 100644 --- a/base/common/python/pki/system.py +++ b/base/common/python/pki/system.py @@ -31,8 +31,9 @@ class SecurityDomainClient: def getSecurityDomainInfo(self): r = self.connection.get('securityDomain/domainInfo') + j = r.json() info = SecurityDomainInfo() - info.name = r.json['DomainInfo']['@id'] + info.name = j['DomainInfo']['@id'] return info -- cgit