just in case the path varies

This commit is contained in:
Hossein Shafagh 2019-10-18 11:02:41 -07:00
parent 1768aad9e2
commit 9037f88430
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ class AWSSourcePlugin(SourcePlugin):
account_number = self.get_option("accountNumber", options)
# certificate name may contain path, in which case we remove it
if "/" in certificate_name:
certificate_name = certificate_name.split('/')[1]
certificate_name = certificate_name.split('/')[-1]
try:
cert = iam.get_certificate(certificate_name, account_number=account_number)
if cert: