ashb commented on a change in pull request #20945:
URL: https://github.com/apache/airflow/pull/20945#discussion_r789502690



##########
File path: airflow/serialization/serialized_objects.py
##########
@@ -644,6 +644,7 @@ def deserialize_operator(cls, encoded_op: Dict[str, Any]) 
-> Union[BaseOperator,
                 deps=tuple(),
                 is_dummy=False,
                 template_fields=(),
+                template_ext=(),

Review comment:
       And yeah, running the tests it looks like it is already handled
   
   ```
   1615  ->     assert op.mapped_kwargs['bash_command'] == literal              
                                                                                
                                                                                
          
   1616         assert op.partial_kwargs['executor_config'] == {'dict': {'sub': 
'value'}}                                                                       
                                                                                
          
   (Pdb++) p op
   MappedOperator(task_type=BashOperator, task_id='a', 
partial_kwargs={'executor_config': {'dict': {'sub': 'value'}}}, 
mapped_kwargs={'bash_command': [1, 2, {'a': 'b'}]}, dag=None)
   (Pdb++) p op.template_ext
   ['.sh', '.bash']
   (Pdb++) 
   ['.sh', '.bash']
   (Pdb++) p op.template_fields
   ['bash_command', 'env']
   (Pdb++) 
   ['bash_command', 'env']
   ```




-- 
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