henry3260 commented on code in PR #61103:
URL: https://github.com/apache/airflow/pull/61103#discussion_r2730671261


##########
providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/msgraph.py:
##########
@@ -160,13 +160,29 @@ def __init__(
         self.conn_id = conn_id
         self.timeout = timeout
         self.proxies = proxies
-        self.host = host
+        self.host = self._ensure_protocol(host)
         if isinstance(scopes, str):
             self.scopes = [scopes]
         else:
             self.scopes = scopes or [self.DEFAULT_SCOPE]
         self.api_version = self.resolve_api_version_from_value(api_version)
 
+    def _ensure_protocol(self, host: str, schema: str = "https") -> str:

Review Comment:
   ```suggestion
       def _ensure_protocol(self, host: str, schema: str = "https") -> str | 
None:
   ```



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