diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2013-04-29 12:00:38 -0400 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-04-29 16:01:02 -0400 |
commit | 23cbc44604ec0f5408da023fb858e9799fddb775 (patch) | |
tree | 1b0ebb790d1a935cfb208ca6a64d4d891adae430 /base | |
parent | 92ed749acc20cfea3fbc4b4c42aede098da7c34d (diff) | |
download | pki-23cbc44604ec0f5408da023fb858e9799fddb775.tar.gz pki-23cbc44604ec0f5408da023fb858e9799fddb775.tar.xz pki-23cbc44604ec0f5408da023fb858e9799fddb775.zip |
Fixed server upgrade problem on new installation.
The PKIServerUpgrader.get_current_version() incorrectly returns None
if there is no instance on the system. It has been modified to return
the target version so that no upgrade operation will occur.
Bugzilla #957690
Diffstat (limited to 'base')
-rw-r--r-- | base/server/python/pki/server/upgrade.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/server/python/pki/server/upgrade.py b/base/server/python/pki/server/upgrade.py index 45ed9c13b..e7ce4115a 100644 --- a/base/server/python/pki/server/upgrade.py +++ b/base/server/python/pki/server/upgrade.py @@ -263,6 +263,10 @@ class PKIServerUpgrader(pki.upgrade.PKIUpgrader): if not current_version or version < current_version: current_version = version + # if no instances defined, no upgrade required + if not current_version: + current_version = self.get_target_version() + return current_version def show_tracker(self): |