TobKed commented on a change in pull request #6096: [AIRFLOW-5477] Rewrite 
Google PubSub Hook to Google Cloud Python
URL: https://github.com/apache/airflow/pull/6096#discussion_r326613723
 
 

 ##########
 File path: airflow/gcp/operators/pubsub.py
 ##########
 @@ -403,29 +617,43 @@ class PubSubPublishOperator(BaseOperator):
         For this to work, the service account making the request
         must have domain-wide delegation enabled.
     :type delegate_to: str
+    :param project: (Deprecated) the GCP project ID where the topic will be 
created
+    :type project: str
     """
-    template_fields = ['project', 'topic', 'messages']
+    template_fields = ['project_id', 'topic', 'messages']
 
 Review comment:
   > I had to revert these changes (only `"project"` shall remain) because of 
the errors due to errors:
   > ` File "/workspace/airflow/models/baseoperator.py", line 662, in 
_do_render_template_fields content = getattr(parent, attr_name) AttributeError: 
'PubSubPublishOperator' object has no attribute 'project'`
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to