Hi All,

Please review this patch,

Partially fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1351295

--
Thanks,
Abhijeet Kasurde

IRC: akasurde
http://akasurde.github.io

From 7016f3e893a613da9913e0b5c0af75b1c54b3a62 Mon Sep 17 00:00:00 2001
From: Abhijeet Kasurde <[email protected]>
Date: Thu, 30 Jun 2016 16:53:36 +0530
Subject: [PATCH] Updated notification message for kra-db-vlv-del command

Partially fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1351295

Signed-off-by: Abhijeet Kasurde <[email protected]>
---
 base/server/python/pki/server/cli/kra.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/base/server/python/pki/server/cli/kra.py b/base/server/python/pki/server/cli/kra.py
index b4f0df43f39078618b58be74087b520c7d874b48..8fb073d62a9ff0b40823368fa8af8c3a161e7e62 100644
--- a/base/server/python/pki/server/cli/kra.py
+++ b/base/server/python/pki/server/cli/kra.py
@@ -448,10 +448,13 @@ class KRADBVLVDeleteCLI(pki.cli.CLI):
     def delete_vlv(self, instance, bind_dn, bind_password):
         subsystem = instance.get_subsystem('kra')
         if not subsystem:
+            msg = "No KRA subsystem available. Skipping ..."
             if self.verbose:
-                print('modify_kra_vlv: No KRA subsystem available.  '
-                      'Skipping ...')
-                return
+                print('modify_kra_vlv: %s' % msg)
+            else:
+                print('ERROR: %s' % msg)
+            return
+
         database = subsystem.config['internaldb.database']
 
         if self.out_file:
-- 
2.7.4

_______________________________________________
Pki-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pki-devel

Reply via email to