Alon Bar-Lev has uploaded a new change for review. Change subject: packaging: setup: no need to parse certificate if transformed to ascii ......................................................................
packaging: setup: no need to parse certificate if transformed to ascii Change-Id: I73e32dc153215c4ab4bd5301233c1de8e87127b5 Signed-off-by: Alon Bar-Lev <alo...@redhat.com> --- M packaging/setup/plugins/ovirt-engine-rename/core/pki.py 1 file changed, 1 insertion(+), 5 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/36/18536/1 diff --git a/packaging/setup/plugins/ovirt-engine-rename/core/pki.py b/packaging/setup/plugins/ovirt-engine-rename/core/pki.py index 3896134..e932e17 100644 --- a/packaging/setup/plugins/ovirt-engine-rename/core/pki.py +++ b/packaging/setup/plugins/ovirt-engine-rename/core/pki.py @@ -249,12 +249,8 @@ '--cert=-', ), ) - - while 'BEGIN CERTIFICATE' not in stdout[0]: - stdout = stdout[1:] - x509 = X509.load_cert_string( - string='\n'.join(stdout).encode('utf8'), + string='\n'.join(stdout).encode('ascii'), format=X509.FORMAT_PEM, ) subject = x509.get_subject() -- To view, visit http://gerrit.ovirt.org/18536 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I73e32dc153215c4ab4bd5301233c1de8e87127b5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.3 Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches