Commit 2f97ed32 authored by Vincent Pelletier's avatar Vincent Pelletier

caucase.cli: Remove a bit of dead code.

parent 527cb56b
......@@ -325,7 +325,6 @@ class CLICaucaseClient(object):
"""
--revoke-other-crt
"""
error = False
for crt_path in crt_list:
try:
# Note: also raises when there are serveral certs. This is intended:
......@@ -345,7 +344,6 @@ class CLICaucaseClient(object):
file=self._stderr,
)
self._client.revokeCertificate(crt_pem)
return error
def revokeSerial(self, serial_list):
"""
......@@ -635,7 +633,7 @@ def main(argv=None, stdout=sys.stdout, stderr=sys.stderr):
client.signCSR(args.sign_csr)
client.signCSRWith(args.sign_csr_with)
client.rejectCSR(args.reject_csr)
error |= client.revokeOtherCRT(args.revoke_other_crt)
client.revokeOtherCRT(args.revoke_other_crt)
client.revokeSerial(args.revoke_serial)
# show latest CSR list status
if args.list_csr:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment