dabla commented on code in PR #60651:
URL: https://github.com/apache/airflow/pull/60651#discussion_r2783606128


##########
providers/microsoft/winrm/src/airflow/providers/microsoft/winrm/hooks/winrm.py:
##########
@@ -191,47 +192,74 @@ def get_conn(self):
         if not self.endpoint:
             self.endpoint = 
f"http://{self.remote_host}:{self.remote_port}/wsman";
 
+        if not self.password or not self.password.strip():
+            raise AirflowException(f"Missing password for WinRM connection to 
host: {self.remote_host}")

Review Comment:
   Indeed, I think the original implementation right now would also fail, I 
also made this remark to myself.  Will add test for this as well as this seems 
broken logic.



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