From 9b83091ec85a2f0afaf2936ed6388b2ee53ef656 Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Tue, 16 Jul 2013 17:52:12 -0400 Subject: Fix a defect in upgrade scripts. A bug introduced in upgrade scripts while fixing pylint errors and warnings are fixed. --- base/server/python/pki/server/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'base/server/python') diff --git a/base/server/python/pki/server/__init__.py b/base/server/python/pki/server/__init__.py index fab695bdc..eb1e4b81a 100644 --- a/base/server/python/pki/server/__init__.py +++ b/base/server/python/pki/server/__init__.py @@ -59,10 +59,10 @@ class PKISubsystem(object): class PKIInstance(object): - def __init__(self, name, vtype=10): + def __init__(self, name, instanceType=10): self.name = name - self.vtype = vtype - if self.vtype >= 10: + self.type = instanceType + if self.type >= 10: self.conf_dir = os.path.join(INSTANCE_BASE_DIR, name, 'conf') self.base_dir = os.path.join(INSTANCE_BASE_DIR, name) else: @@ -77,7 +77,7 @@ class PKIInstance(object): 'Invalid instance: ' + self.__repr__(), None) def __repr__(self): - if self.vtype == 9: + if self.type == 9: return "Dogtag 9 " + self.name return self.name -- cgit