From a646c1b6e67a5c4d105208254fa3288cdbd86c6e Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 1 Jul 2016 10:23:53 +0530 Subject: Updated notification message for OCSP subsystem command Partially fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1351295 --- base/server/python/pki/server/cli/ocsp.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'base/server/python') 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() -- cgit