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

potiuk 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 1c1e67725c9 fix(providers/winrm): add connection-types to provider 
configuration (#60028)
1c1e67725c9 is described below

commit 1c1e67725c9ff446b6fabe19fa3aaa25917515d2
Author: Fouzi Takelait <[email protected]>
AuthorDate: Sun Jan 4 14:32:24 2026 -0500

    fix(providers/winrm): add connection-types to provider configuration 
(#60028)
    
    Add connection-types section to provider.yaml and get_provider_info.py to 
enable WinRM connection type visibility in Airflow UI dropdown.
    
    Fixes part of #28790
    
    Signed-off-by: Fouzi Takelait <[email protected]>
---
 providers/microsoft/winrm/provider.yaml                             | 4 ++++
 .../src/airflow/providers/microsoft/winrm/get_provider_info.py      | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/providers/microsoft/winrm/provider.yaml 
b/providers/microsoft/winrm/provider.yaml
index 0c54039ea9d..fe4eaa94f3f 100644
--- a/providers/microsoft/winrm/provider.yaml
+++ b/providers/microsoft/winrm/provider.yaml
@@ -81,3 +81,7 @@ hooks:
   - integration-name: Windows Remote Management (WinRM)
     python-modules:
       - airflow.providers.microsoft.winrm.hooks.winrm
+
+connection-types:
+  - hook-class-name: airflow.providers.microsoft.winrm.hooks.winrm.WinRMHook
+    connection-type: winrm
diff --git 
a/providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/get_provider_info.py
 
b/providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/get_provider_info.py
index a0ade5ac01a..84cddb048c1 100644
--- 
a/providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/get_provider_info.py
+++ 
b/providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/get_provider_info.py
@@ -47,4 +47,10 @@ def get_provider_info():
                 "python-modules": 
["airflow.providers.microsoft.winrm.hooks.winrm"],
             }
         ],
+        "connection-types": [
+            {
+                "hook-class-name": 
"airflow.providers.microsoft.winrm.hooks.winrm.WinRMHook",
+                "connection-type": "winrm",
+            }
+        ],
     }

Reply via email to