Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Fix Remote Deletion of SSL Certificates
Browse files Browse the repository at this point in the history
get_remote_certificate doesnt need ssl data passed anymore,
this makes sure that no more calls pass this argument (Closes #62)
  • Loading branch information
Niall Creech committed Jun 1, 2015
1 parent 30f746c commit 6017572
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bootstrap_cfn/iam.py
Expand Up @@ -256,8 +256,7 @@ def upload_certificate(self, cert_name, stack_name, ssl_data, force=False):

try:
if force or not self.get_remote_certificate(cert_name,
stack_name,
ssl_data):
stack_name):
self.conn_iam.upload_server_cert(cert_id, cert_body,
private_key,
cert_chain)
Expand Down Expand Up @@ -300,8 +299,7 @@ def delete_certificate(self, cert_name, stack_name, ssl_data):
# continue to delete other certs
try:
if self.get_remote_certificate(cert_name,
stack_name,
ssl_data):
stack_name):
self.conn_iam.delete_server_cert(cert_id)
logging.info("IAM::delete_certificate: "
"Deleting certificate '%s'.."
Expand Down

0 comments on commit 6017572

Please sign in to comment.