diff options
author | Endi S. Dewata <edewata@redhat.com> | 2016-07-07 03:52:09 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2016-07-07 04:44:13 +0200 |
commit | 12e24ae0eb3f6fb7e0f71b95e3911f45594c5965 (patch) | |
tree | aa4efddd6181c0fb713a1da0716ec42f8b72d868 /base/common/python | |
parent | 59ba26cf9292a578d34d98344e4b1f4d20339508 (diff) | |
download | pki-12e24ae0eb3f6fb7e0f71b95e3911f45594c5965.tar.gz pki-12e24ae0eb3f6fb7e0f71b95e3911f45594c5965.tar.xz pki-12e24ae0eb3f6fb7e0f71b95e3911f45594c5965.zip |
Fixed pki pkcs12-import output.
The pki pkcs12-import has been modified to suppress the output of
external command execution and display a completion message more
consistently.
https://fedorahosted.org/pki/ticket/2399
Diffstat (limited to 'base/common/python')
-rw-r--r-- | base/common/python/pki/cli/pkcs12.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/common/python/pki/cli/pkcs12.py b/base/common/python/pki/cli/pkcs12.py index 145f1258e..ded79c7cd 100644 --- a/base/common/python/pki/cli/pkcs12.py +++ b/base/common/python/pki/cli/pkcs12.py @@ -314,4 +314,7 @@ class PKCS12ImportCLI(pki.cli.CLI): cmd.extend(nicknames) - main_cli.execute_java(cmd) + with open(os.devnull, 'w') as f: + main_cli.execute_java(cmd, stdout=f) + + self.print_message('Import complete') |