GitHub user noderat edited a comment on the discussion: microsoft-psrp 
securestring jinja2.exceptions.TemplateAssertionError

@malthe My code and use-case is almost identical to the minimal example I 
provided in the original post. I'm entirely new to Apache Airflow and I was 
trying to use this PsrpOperator in my first experimental DAG to call a 
powershell cmdlet on a remote machine and pass it an API key as a SecureString 
just like it says can be done using the jinja template filter in the 
PsrpOperator's documentation. It's darn near identical to my minimal example 
aside from the string being converted being different. As far as I'm aware I am 
trying to use the PsrpOperator in the most standard possible way way. If it 
were not for trying to solve this bug I wouldn't have even known that 
`get_template_env` method exists, so I'm not even sure when or why one might 
ever use that method themselves directly if they are just trying to use the 
securestring jinja filter - get_template_env is not something that is even 
mentioned in the Airflow tutorial on using Jinja templates.

GitHub link: 
https://github.com/apache/airflow/discussions/44095#discussioncomment-11476227

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to