Skip to content

Commit 1c1e677

Browse files
authored
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]>
1 parent cd3a7e1 commit 1c1e677

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

providers/microsoft/winrm/provider.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,7 @@ hooks:
8181
- integration-name: Windows Remote Management (WinRM)
8282
python-modules:
8383
- airflow.providers.microsoft.winrm.hooks.winrm
84+
85+
connection-types:
86+
- hook-class-name: airflow.providers.microsoft.winrm.hooks.winrm.WinRMHook
87+
connection-type: winrm

providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/get_provider_info.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ def get_provider_info():
4747
"python-modules": ["airflow.providers.microsoft.winrm.hooks.winrm"],
4848
}
4949
],
50+
"connection-types": [
51+
{
52+
"hook-class-name": "airflow.providers.microsoft.winrm.hooks.winrm.WinRMHook",
53+
"connection-type": "winrm",
54+
}
55+
],
5056
}

0 commit comments

Comments
 (0)