ad-m commented on a change in pull request #7682: [AIRFLOW-7031] Airflow WinRM
endpoint is hardcoded to HTTP
URL: https://github.com/apache/airflow/pull/7682#discussion_r397102749
##########
File path: airflow/providers/microsoft/winrm/hooks/winrm.py
##########
@@ -199,7 +199,7 @@ def get_conn(self):
# If endpoint is not set, then build a standard wsman endpoint from
host and port.
if not self.endpoint:
- self.endpoint = 'http://{0}:{1}/wsman'.format(self.remote_host,
self.remote_port)
+ self.endpoint = '{0}://{1}:{2}/wsman'.format(self.service.lower(),
self.remote_host, self.remote_port)
Review comment:
@turbaszek , what is the recommended policy of the change management of
Airflow project in this respect to use value in accordance with RFC without
undue transformation? Should we change the default value to use "http" (now
"HTTP" in the constructor)? Then transformation should not be necessary then.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services