URL: https://github.com/freeipa/freeipa/pull/1000 Author: frasertweedale Title: #1000: Fix CA-less installation Action: opened
PR body: """ Fix CA-less installation failure due to an incorrect use of with statement. Fixes: https://pagure.io/freeipa/issue/7118 """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/1000/head:pr1000 git checkout pr1000
From 70d7cd7e927b5169abb87739f03f679d158d2c84 Mon Sep 17 00:00:00 2001 From: Fraser Tweedale <ftwee...@redhat.com> Date: Thu, 24 Aug 2017 14:04:59 +1000 Subject: [PATCH] Fix CA-less installation Fix CA-less installation failure due to an incorrect use of with statement. Fixes: https://pagure.io/freeipa/issue/7118 --- ipapython/certdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipapython/certdb.py b/ipapython/certdb.py index 33f32a4c9f..87f5595914 100644 --- a/ipapython/certdb.py +++ b/ipapython/certdb.py @@ -579,8 +579,8 @@ def import_files(self, files, import_keys=False, key_password=None, self.add_cert(cert, nickname, EMPTY_TRUST_FLAGS) if extracted_key: - with tempfile.NamedTemporaryFile(), tempfile.NamedTemporaryFile() \ - as (in_file, out_file): + with tempfile.NamedTemporaryFile() as in_file, \ + tempfile.NamedTemporaryFile() as out_file: x509.write_certificate_list(extracted_certs, in_file.name) in_file.write(extracted_key) in_file.flush()
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org