From 1ef70650ba52e88267d85b289bf004949370e9af Mon Sep 17 00:00:00 2001 From: jtyers <40065647+jtyers@users.noreply.github.com> Date: Fri, 26 Aug 2022 13:05:38 +0100 Subject: [PATCH] fixes #918 set saml_provider_arn even when no SAML providers present to avoid error --- commands/weboftrust.py | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/weboftrust.py b/commands/weboftrust.py index d5391803f..a87c12ece 100644 --- a/commands/weboftrust.py +++ b/commands/weboftrust.py @@ -198,6 +198,7 @@ def get_iam_trusts(account, nodes, connections, connections_to_get): # Validate that the federated principal and the SAML provider is coming from known accounts. # WoT will show us the direction of that trust for further inspection. # this enables cross_account_admin_sts (STS between accounts) + saml_provider_arn = "" for saml in saml_providers: if saml["Arn"] == federated_principal: saml_provider_arn = saml["Arn"]