From 015b67c4ac7f54b4afd2ab8ad065a23b9118b349 Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Mon, 5 Aug 2024 12:28:19 -0700 Subject: [PATCH] Cleanup of AWS::IAM::Group --- .../providers/all/aws_iam_group/policy_policydocument.json | 3 ++- .../data/schemas/providers/ca_west_1/aws-iam-group.json | 3 ++- .../data/schemas/providers/us_gov_east_1/aws-iam-group.json | 3 ++- .../data/schemas/providers/us_gov_west_1/aws-iam-group.json | 3 ++- src/cfnlint/schema/manager.py | 3 --- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/cfnlint/data/schemas/patches/providers/all/aws_iam_group/policy_policydocument.json b/src/cfnlint/data/schemas/patches/providers/all/aws_iam_group/policy_policydocument.json index 0d822c83b9..8ff7104a3c 100644 --- a/src/cfnlint/data/schemas/patches/providers/all/aws_iam_group/policy_policydocument.json +++ b/src/cfnlint/data/schemas/patches/providers/all/aws_iam_group/policy_policydocument.json @@ -11,7 +11,8 @@ "path": "/definitions/Policy/properties/PolicyDocument", "value": { "type": [ - "object" + "object", + "string" ] } } diff --git a/src/cfnlint/data/schemas/providers/ca_west_1/aws-iam-group.json b/src/cfnlint/data/schemas/providers/ca_west_1/aws-iam-group.json index 0dcfb7d073..8d562e5847 100644 --- a/src/cfnlint/data/schemas/providers/ca_west_1/aws-iam-group.json +++ b/src/cfnlint/data/schemas/providers/ca_west_1/aws-iam-group.json @@ -9,7 +9,8 @@ "properties": { "PolicyDocument": { "type": [ - "object" + "object", + "string" ] }, "PolicyName": { diff --git a/src/cfnlint/data/schemas/providers/us_gov_east_1/aws-iam-group.json b/src/cfnlint/data/schemas/providers/us_gov_east_1/aws-iam-group.json index 60e4219956..bde35eb566 100644 --- a/src/cfnlint/data/schemas/providers/us_gov_east_1/aws-iam-group.json +++ b/src/cfnlint/data/schemas/providers/us_gov_east_1/aws-iam-group.json @@ -9,7 +9,8 @@ "properties": { "PolicyDocument": { "type": [ - "object" + "object", + "string" ] }, "PolicyName": { diff --git a/src/cfnlint/data/schemas/providers/us_gov_west_1/aws-iam-group.json b/src/cfnlint/data/schemas/providers/us_gov_west_1/aws-iam-group.json index 60e4219956..bde35eb566 100644 --- a/src/cfnlint/data/schemas/providers/us_gov_west_1/aws-iam-group.json +++ b/src/cfnlint/data/schemas/providers/us_gov_west_1/aws-iam-group.json @@ -9,7 +9,8 @@ "properties": { "PolicyDocument": { "type": [ - "object" + "object", + "string" ] }, "PolicyName": { diff --git a/src/cfnlint/schema/manager.py b/src/cfnlint/schema/manager.py index 1aefa8d4e1..498d2ea474 100644 --- a/src/cfnlint/schema/manager.py +++ b/src/cfnlint/schema/manager.py @@ -448,9 +448,6 @@ def _patch_provider_schema( str(e), ) except Exception as e: # pylint: disable=broad-exception-caught - print( - "Exception", type(e), e, os.path.join(append_dir, file_path) - ) LOGGER.info( "Unknown exception raised applying patch %s: %s", os.path.join(append_dir, file_path),