This is an automated email from the ASF dual-hosted git repository.
heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git
The following commit(s) were added to refs/heads/master by this push:
new 798fb96 Fix error finding the port
new d46a65f This closes #1250
798fb96 is described below
commit 798fb96f1f960bca1fe0ff67ca81fca011dbca6d
Author: Juan Cabrerizo <[email protected]>
AuthorDate: Tue Sep 7 09:41:53 2021 +0100
Fix error finding the port
---
.../java/org/apache/brooklyn/location/winrm/WinRmMachineLocation.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/software/winrm/src/main/java/org/apache/brooklyn/location/winrm/WinRmMachineLocation.java
b/software/winrm/src/main/java/org/apache/brooklyn/location/winrm/WinRmMachineLocation.java
index a28a8f2..0adaf2a 100644
---
a/software/winrm/src/main/java/org/apache/brooklyn/location/winrm/WinRmMachineLocation.java
+++
b/software/winrm/src/main/java/org/apache/brooklyn/location/winrm/WinRmMachineLocation.java
@@ -246,7 +246,7 @@ public class WinRmMachineLocation extends
AbstractMachineLocation implements Mac
@Nullable
protected String getHostAndPort() {
String host = getHostname();
- return (host == null) ? null : host + ":" + getDefaultPort();
+ return (host == null) ? null : host + ":" + getPort();
}
public int getPort() {