Yedidyah Bar David has uploaded a new change for review.

Change subject: packaging: setup: pki: renew certs only if exist
......................................................................

packaging: setup: pki: renew certs only if exist

reports key/cert were generated by 3.5 clean setup, but not by upgrade
(and did not exist in <=3.4). This didn't cause a failure because they
are not used by default.

Change-Id: I9ed93d47a55f2971337bac277ce69c672901bb07
Signed-off-by: Yedidyah Bar David <d...@redhat.com>
---
M packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/pki/ca.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/64/41264/1

diff --git a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/pki/ca.py 
b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/pki/ca.py
index 8c33978..35d17cb 100644
--- a/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/pki/ca.py
+++ b/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/pki/ca.py
@@ -238,7 +238,7 @@
 
             enroll = not renew
 
-            if not enroll:
+            if not enroll and os.path.exists(pkcs12):
                 x509 = self._extractPKCS12Certificate(pkcs12)
                 if self._expired(x509):
                     if not entry['extract']:


-- 
To view, visit https://gerrit.ovirt.org/41264
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ed93d47a55f2971337bac277ce69c672901bb07
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yedidyah Bar David <d...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to