Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
2f97ed32
Commit
2f97ed32
authored
Jun 27, 2020
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caucase.cli: Remove a bit of dead code.
parent
527cb56b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
caucase/cli.py
caucase/cli.py
+1
-3
No files found.
caucase/cli.py
View file @
2f97ed32
...
@@ -325,7 +325,6 @@ class CLICaucaseClient(object):
...
@@ -325,7 +325,6 @@ class CLICaucaseClient(object):
"""
"""
--revoke-other-crt
--revoke-other-crt
"""
"""
error
=
False
for
crt_path
in
crt_list
:
for
crt_path
in
crt_list
:
try
:
try
:
# Note: also raises when there are serveral certs. This is intended:
# Note: also raises when there are serveral certs. This is intended:
...
@@ -345,7 +344,6 @@ class CLICaucaseClient(object):
...
@@ -345,7 +344,6 @@ class CLICaucaseClient(object):
file
=
self
.
_stderr
,
file
=
self
.
_stderr
,
)
)
self
.
_client
.
revokeCertificate
(
crt_pem
)
self
.
_client
.
revokeCertificate
(
crt_pem
)
return
error
def
revokeSerial
(
self
,
serial_list
):
def
revokeSerial
(
self
,
serial_list
):
"""
"""
...
@@ -635,7 +633,7 @@ def main(argv=None, stdout=sys.stdout, stderr=sys.stderr):
...
@@ -635,7 +633,7 @@ def main(argv=None, stdout=sys.stdout, stderr=sys.stderr):
client
.
signCSR
(
args
.
sign_csr
)
client
.
signCSR
(
args
.
sign_csr
)
client
.
signCSRWith
(
args
.
sign_csr_with
)
client
.
signCSRWith
(
args
.
sign_csr_with
)
client
.
rejectCSR
(
args
.
reject_csr
)
client
.
rejectCSR
(
args
.
reject_csr
)
error
|=
client
.
revokeOtherCRT
(
args
.
revoke_other_crt
)
client
.
revokeOtherCRT
(
args
.
revoke_other_crt
)
client
.
revokeSerial
(
args
.
revoke_serial
)
client
.
revokeSerial
(
args
.
revoke_serial
)
# show latest CSR list status
# show latest CSR list status
if
args
.
list_csr
:
if
args
.
list_csr
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment