This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 8028744fe17 fix(providers/winrm): Add missing hook class attributes 
(#60009)
8028744fe17 is described below

commit 8028744fe17c597102ed3021a55dc41b7de4c9a8
Author: Fouzi Takelait <[email protected]>
AuthorDate: Thu Jan 1 05:28:18 2026 -0500

    fix(providers/winrm): Add missing hook class attributes (#60009)
    
    Add conn_type, conn_name_attr, default_conn_name, and hook_name
    to WinRMHook to enable proper connection type registration in UI.
    
    Fixes #28790
    
    Signed-off-by: Fouzi Takelait <[email protected]>
---
 .../winrm/src/airflow/providers/microsoft/winrm/hooks/winrm.py       | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/hooks/winrm.py
 
b/providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/hooks/winrm.py
index 3db27265062..1178b3c91f1 100644
--- 
a/providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/hooks/winrm.py
+++ 
b/providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/hooks/winrm.py
@@ -72,6 +72,11 @@ class WinRMHook(BaseHook):
     :param send_cbt: Will send the channel bindings over a HTTPS channel 
(Default: True)
     """
 
+    conn_name_attr = "ssh_conn_id"
+    default_conn_name = "winrm_default"
+    conn_type = "winrm"
+    hook_name = "WinRM"
+
     def __init__(
         self,
         ssh_conn_id: str | None = None,

Reply via email to