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

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: