Skip to content

Commit

Permalink
policy - have conditions support vars
Browse files Browse the repository at this point in the history
  • Loading branch information
kentnsw committed Aug 25, 2022
1 parent 6accb72 commit 55d7cca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c7n/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,10 @@ def expand_variables(self, variables):

# Update ourselves in place
self.data = updated

# NOTE rebuild the policy conditions base on the new self.data
self.conditions = PolicyConditions(self, self.data)

# Reload filters/actions using updated data, we keep a reference
# for some compatiblity preservation work.
m = self.resource_manager
Expand Down

0 comments on commit 55d7cca

Please sign in to comment.