Skip to content

Commit

Permalink
fix(cloudformation): Fix ALBListenerTLS12 check (#3697)
Browse files Browse the repository at this point in the history
CFN Check fix
  • Loading branch information
ChanochShayner authored Oct 19, 2022
1 parent af49330 commit d4b31cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def scan_resource_conf(self, conf: dict[str, Any]) -> CheckResult:
protocol = conf['Properties']['Protocol']
if protocol in ('HTTPS', 'TLS'):
if 'SslPolicy' in conf['Properties'].keys():
if conf['Properties']['SslPolicy'].startswith(supported_policy_prefixes[protocol]):
if isinstance(conf['Properties']['SslPolicy'], str) and conf['Properties']['SslPolicy'].startswith(supported_policy_prefixes[protocol]):
return CheckResult.PASSED
return CheckResult.FAILED
elif conf['Properties']['Protocol'] in ('TCP', 'UDP', 'TCP_UDP'):
Expand Down

0 comments on commit d4b31cb

Please sign in to comment.