Github user iyovcheva commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/690#discussion_r117935379
  
    --- Diff: 
core/src/main/java/org/apache/brooklyn/location/byon/ByonLocationResolver.java 
---
    @@ -152,49 +153,54 @@ protected ConfigBag extractConfig(Map<?,?> 
locationFlags, String spec, LocationR
             
             String osFamily = (String) 
machineConfig.remove(OS_FAMILY.getName());
             String ssh = (String) machineConfig.remove("ssh");
    -        String winrm = (String) machineConfig.remove("winrm");
    -        Map<Integer, String> tcpPortMappings = (Map<Integer, String>) 
machineConfig.get("tcpPortMappings");
    -        
    -        checkArgument(ssh != null ^ winrm != null, "Must specify exactly 
one of 'ssh' or 'winrm' for machine: %s", valSanitized);
    -        
    -        UserAndHostAndPort userAndHostAndPort;
    -        String host;
    -        int port;
    -        if (ssh != null) {
    -            userAndHostAndPort = parseUserAndHostAndPort(ssh, 22);
    +        if (machineConfig.containsKey("winrm") && 
!(machineConfig.get("winrm") instanceof String)) {
    --- End diff --
    
    External config is not supported for ssh. If we implement it, it's good to 
go in separate PR.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to