diff options
| author | Fraser Tweedale <ftweedal@redhat.com> | 2017-08-24 14:04:59 +1000 |
|---|---|---|
| committer | Pavel Vomacka <pvomacka@redhat.com> | 2017-08-25 09:48:02 +0200 |
| commit | 477b3dca802349ac4e8d60cfcabc7fe31d0ab9ef (patch) | |
| tree | 7b3e3e76766c3af7c7938ad1891c1b28659bb788 /ipapython | |
| parent | 6ca8787cc7f4865cfce20241440f17d3a41bef78 (diff) | |
| download | freeipa-477b3dca802349ac4e8d60cfcabc7fe31d0ab9ef.tar.gz freeipa-477b3dca802349ac4e8d60cfcabc7fe31d0ab9ef.tar.xz freeipa-477b3dca802349ac4e8d60cfcabc7fe31d0ab9ef.zip | |
Fix incorrect 'with' statement in CA-less installation
Part of: https://pagure.io/freeipa/issue/7118
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Diffstat (limited to 'ipapython')
| -rw-r--r-- | ipapython/certdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipapython/certdb.py b/ipapython/certdb.py index 33f32a4c9..87f559591 100644 --- a/ipapython/certdb.py +++ b/ipapython/certdb.py @@ -579,8 +579,8 @@ class NSSDatabase(object): 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() |
