diff options
author | Abhijeet Kasurde <akasurde@redhat.com> | 2016-07-01 10:23:53 +0530 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2016-07-01 19:19:32 +0200 |
commit | a646c1b6e67a5c4d105208254fa3288cdbd86c6e (patch) | |
tree | 5fb601e2f932e347233c997096eb597ae1885f44 /base/server/python/pki/server/cli | |
parent | e81cf4e11ca86562b27548d469fa606a072da23b (diff) | |
download | pki-a646c1b6e67a5c4d105208254fa3288cdbd86c6e.tar.gz pki-a646c1b6e67a5c4d105208254fa3288cdbd86c6e.tar.xz pki-a646c1b6e67a5c4d105208254fa3288cdbd86c6e.zip |
Updated notification message for OCSP subsystem command
Partially fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1351295
Diffstat (limited to 'base/server/python/pki/server/cli')
-rw-r--r-- | base/server/python/pki/server/cli/ocsp.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/server/python/pki/server/cli/ocsp.py b/base/server/python/pki/server/cli/ocsp.py index c32e8ded6..246f5932d 100644 --- a/base/server/python/pki/server/cli/ocsp.py +++ b/base/server/python/pki/server/cli/ocsp.py @@ -118,9 +118,15 @@ class OCSPClonePrepareCLI(pki.cli.CLI): sys.exit(1) instance = pki.server.PKIInstance(instance_name) + if not instance.is_valid(): + print('ERROR: Invalid instance %s.' % instance_name) + sys.exit(1) instance.load() subsystem = instance.get_subsystem('ocsp') + if not subsystem: + print("ERROR: No OCSP subsystem in instance %s." % instance_name) + sys.exit(1) tmpdir = tempfile.mkdtemp() |