drewrukin commented on code in PR #77462:
URL: https://github.com/apache/airflow/pull/77462#discussion_r4693980607
##########
providers/google/src/airflow/providers/google/cloud/hooks/cloud_monitoring.py:
##########
@@ -56,14 +56,14 @@ def __init__(
def _get_policy_client(self):
if not self._policy_client:
self._policy_client = monitoring_v3.AlertPolicyServiceClient(
- client_options=self.get_client_options()
+ credentials=self.get_credentials(),
client_options=self.get_client_options()
)
return self._policy_client
def _get_channel_client(self):
if not self._channel_client:
self._channel_client =
monitoring_v3.NotificationChannelServiceClient(
- client_options=self.get_client_options()
+ credentials=self.get_credentials(),
client_options=self.get_client_options()
)
Review Comment:
Thanks for the review. I added client_info=CLIENT_INFO to both clients and
documented the credential-identity change in the Google provider changelog.
--
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]