summaryrefslogtreecommitdiffstats
path: root/base/common/python/pki/system.py
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2014-05-07 14:05:31 -0400
committerAde Lee <alee@redhat.com>2014-05-29 11:24:17 -0400
commitfcfdeb637e1d2f72437197627a079c2af74b1f19 (patch)
treeedc3518d858b950b94ab0eff9f36c586d4ef309b /base/common/python/pki/system.py
parent6e82fb87ceb3d3650bd9749acd2b66958a9738a6 (diff)
downloadpki-fcfdeb637e1d2f72437197627a079c2af74b1f19.tar.gz
pki-fcfdeb637e1d2f72437197627a079c2af74b1f19.tar.xz
pki-fcfdeb637e1d2f72437197627a079c2af74b1f19.zip
fix issues identified by pycharm for system.py
Diffstat (limited to 'base/common/python/pki/system.py')
-rw-r--r--base/common/python/pki/system.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py
index df71c8dab..cada5af69 100644
--- a/base/common/python/pki/system.py
+++ b/base/common/python/pki/system.py
@@ -20,24 +20,24 @@
#
import pki.encoder as encoder
-import xml.etree.ElementTree as ET
+import xml.etree.ElementTree as ETree
import os
SYSTEM_TYPE = "Fedora/RHEL"
if os.path.exists("/etc/debian_version"):
SYSTEM_TYPE = "debian"
-class SecurityDomainInfo(object):
+class SecurityDomainInfo(object):
def __init__(self):
self.name = None
-class SecurityDomainClient(object):
+class SecurityDomainClient(object):
def __init__(self, connection):
self.connection = connection
- def getSecurityDomainInfo(self):
+ def get_security_domain_info(self):
response = self.connection.get('/rest/securityDomain/domainInfo')
info = SecurityDomainInfo()
@@ -45,17 +45,17 @@ class SecurityDomainClient(object):
return info
- def getOldSecurityDomainInfo(self):
+ def get_old_security_domain_info(self):
response = self.connection.get('/admin/ca/getDomainXML')
- root = ET.fromstring(response.text)
- domaininfo = ET.fromstring(root.find("DomainInfo").text)
+ root = ETree.fromstring(response.text)
+ domaininfo = ETree.fromstring(root.find("DomainInfo").text)
info = SecurityDomainInfo()
info.name = domaininfo.find("Name").text
return info
-class ConfigurationRequest(object):
+class ConfigurationRequest(object):
def __init__(self):
self.token = "Internal Key Storage Token"
self.isClone = "false"
@@ -63,18 +63,18 @@ class ConfigurationRequest(object):
self.importAdminCert = "false"
self.generateServerCert = "true"
-class ConfigurationResponse(object):
+class ConfigurationResponse(object):
def __init__(self):
pass
-class SystemCertData(object):
+class SystemCertData(object):
def __init__(self):
pass
-class SystemConfigClient(object):
+class SystemConfigClient(object):
def __init__(self, connection):
self.connection = connection
@@ -84,14 +84,14 @@ class SystemConfigClient(object):
response = self.connection.post('/rest/installer/configure', data, headers)
return response.json()
-class SystemStatusClient(object):
+class SystemStatusClient(object):
def __init__(self, connection):
self.connection = connection
- def getStatus(self):
- response = self.connection.get('/admin/' + \
- self.connection.subsystem + '/getStatus')
+ def get_status(self):
+ response = self.connection.get('/admin/' +
+ self.connection.subsystem + '/getStatus')
return response.text