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..3f68d4ea98 100644 --- a/src/cfnlint/schema/manager.py +++ b/src/cfnlint/schema/manager.py @@ -430,6 +430,7 @@ def _patch_provider_schema( str(e), ) except jsonpatch.JsonPatchTestFailed as e: + print(e, os.path.join(append_dir, file_path)) LOGGER.info( "Patch test failed %s: %s", os.path.join(append_dir, file_path), @@ -448,9 +449,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),