diff --git a/c7n/policy.py b/c7n/policy.py index f2cfe1020fd..f7b5dc86291 100644 --- a/c7n/policy.py +++ b/c7n/policy.py @@ -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