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),