siddhsql opened a new issue, #31272:
URL: https://github.com/apache/airflow/issues/31272
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
airflow version 2.4.3
when we try to specify location in argument to
CloudBuildRunBuildTriggerOperator
code:
```
from airflow.providers.google.cloud.operators.cloud_build import (
CloudBuildRunBuildTriggerOperator,
)
CloudBuildRunBuildTriggerOperator(
task_id=task_id,
project_id=PROJECT_ID,
trigger_id=trigger_id,
location=LOCATION,
source={"project_id": PROJECT_ID, "repo_name": repo_url,
"branch_name": "master"},
)
```
we get error:
```
Broken DAG: [/home/airflow/gcs/dags/xxx.py] Traceback (most recent call
last):
File
"/opt/python3.8/lib/python3.8/site-packages/airflow/models/baseoperator.py",
line 408, in apply_defaults
result = func(self, **kwargs, default_args=default_args)
File
"/opt/python3.8/lib/python3.8/site-packages/airflow/models/baseoperator.py",
line 756, in __init__
raise AirflowException(
airflow.exceptions.AirflowException: Invalid arguments were passed to
CloudBuildRunBuildTriggerOperator (task_id: iacv-common). Invalid arguments
were:
**kwargs: {'location': 'us-central1'}
```
### What you think should happen instead
the location should be honored
### How to reproduce
run the code above
### Operating System
Linux Debian
### Versions of Apache Airflow Providers
2.4.3
### Deployment
Google Cloud Composer
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]