Skip to content

Commit

Permalink
aws - missing filter in lambda skip jsonschema validate (#5832)
Browse files Browse the repository at this point in the history
  • Loading branch information
kapilt committed Jun 4, 2020
1 parent f9e800b commit 0444d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c7n/loader.py
Expand Up @@ -130,9 +130,9 @@ def load_data(self, policy_data, file_uri, validate=None,
if missing:
self._handle_missing_resources(policy_data, missing)

if validate is not False or (
if schema and (validate is not False or (
validate is None and
self.default_schema_validate):
self.default_schema_validate)):
errors = self.validator.validate(policy_data, tuple(rtypes))
if errors:
raise PolicyValidationError(
Expand Down

0 comments on commit 0444d8d

Please sign in to comment.