diff options
author | Ade Lee <alee@redhat.com> | 2014-02-17 11:28:53 -0500 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2014-02-19 10:49:31 -0500 |
commit | 86dfed578c3230064f2c93156b38309070a478f8 (patch) | |
tree | 708720f576142c32f233c99b62391b417026c3f1 /base/server/sbin/pkidestroy | |
parent | f4aafb999efc1367c005c9683ae9d935720d2482 (diff) | |
download | pki-86dfed578c3230064f2c93156b38309070a478f8.tar.gz pki-86dfed578c3230064f2c93156b38309070a478f8.tar.xz pki-86dfed578c3230064f2c93156b38309070a478f8.zip |
Added decorator to handle exceptions
Decorator catches HttpErrorExceptions from Requests
and extracts the relevant PKIException object, and rethrows
it.
Diffstat (limited to 'base/server/sbin/pkidestroy')
-rwxr-xr-x | base/server/sbin/pkidestroy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/server/sbin/pkidestroy b/base/server/sbin/pkidestroy index 79b1c229f..16479f9fd 100755 --- a/base/server/sbin/pkidestroy +++ b/base/server/sbin/pkidestroy @@ -132,7 +132,7 @@ def main(argv): interactive = True config.pki_subsystem = parser.read_text('Subsystem (CA/KRA/OCSP/TKS/TPS)', options=['CA', 'KRA', 'OCSP', 'TKS', 'TPS'], - default='CA', caseSensitive=False).upper() + default='CA', case_sensitive=False).upper() else: config.pki_subsystem = str(args.pki_subsystem).strip('[\']') @@ -149,7 +149,7 @@ def main(argv): begin = parser.read_text('Begin uninstallation (Yes/No/Quit)', options=['Yes', 'Y', 'No', 'N', 'Quit', 'Q'], - sign='?', allowEmpty=False, caseSensitive=False).lower() + sign='?', allow_empty=False, case_sensitive=False).lower() print |