Replace _valid_attrs with fattributes (#79376)

It was missed in one place it seems.
pull/79218/head
Rabi Mishra 2 years ago committed by GitHub
parent 5c0b4a3798
commit 6059116a64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- Fixes leftover _valid_attrs usage.

@ -244,7 +244,7 @@ class Task(Base, Conditional, Taggable, CollectionSearch):
elif k.startswith('with_') and k.removeprefix("with_") in lookup_loader:
# transform into loop property
self._preprocess_with_loop(ds, new_ds, k, v)
elif C.INVALID_TASK_ATTRIBUTE_FAILED or k in self._valid_attrs:
elif C.INVALID_TASK_ATTRIBUTE_FAILED or k in self.fattributes:
new_ds[k] = v
else:
display.warning("Ignoring invalid attribute: %s" % k)

Loading…
Cancel
Save