josh-fell commented on issue #23756:
URL: https://github.com/apache/airflow/issues/23756#issuecomment-1133490100

   The issue is that `nodegroup_subnets` is a template field for the operator 
and the string evaluation on that arg is happening as part of the constructor. 
We've been slowly finding more and more of these instances and pushing them out 
of `__init__()`, but template fields are not rendered (i.e. retain their 
stringified Jinja value until _just_ before the `execute()` method is called. 
So string evaluations on template fields should not happen until the 
`execute()` scope. This would also generally emit a warning if 
`nodegroup_subnets` was an `XComArg` as well.
   
   Moving that evaluation section to the scope of the `execute()` method should 
do the trick and be functionally correct.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to