diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2013-03-11 14:05:30 -0400 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-03-19 12:56:32 -0400 |
commit | a3b4489e219d5807133e67b5f2b10c320ecaf8a4 (patch) | |
tree | 98a929605b12c0511d008a2089327c81dbeb925e /base/common/python/pki/system.py | |
parent | 4aef9e0e3ca90f041d7d45360ea74e19de21a0a6 (diff) | |
download | pki-a3b4489e219d5807133e67b5f2b10c320ecaf8a4.tar.gz pki-a3b4489e219d5807133e67b5f2b10c320ecaf8a4.tar.xz pki-a3b4489e219d5807133e67b5f2b10c320ecaf8a4.zip |
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
Diffstat (limited to 'base/common/python/pki/system.py')
-rw-r--r-- | base/common/python/pki/system.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |