just in case the path varies
This commit is contained in:
parent
1768aad9e2
commit
9037f88430
|
@ -277,7 +277,7 @@ class AWSSourcePlugin(SourcePlugin):
|
||||||
account_number = self.get_option("accountNumber", options)
|
account_number = self.get_option("accountNumber", options)
|
||||||
# certificate name may contain path, in which case we remove it
|
# certificate name may contain path, in which case we remove it
|
||||||
if "/" in certificate_name:
|
if "/" in certificate_name:
|
||||||
certificate_name = certificate_name.split('/')[1]
|
certificate_name = certificate_name.split('/')[-1]
|
||||||
try:
|
try:
|
||||||
cert = iam.get_certificate(certificate_name, account_number=account_number)
|
cert = iam.get_certificate(certificate_name, account_number=account_number)
|
||||||
if cert:
|
if cert:
|
||||||
|
|
Loading…
Reference in New Issue