[ 
https://issues.apache.org/jira/browse/BROOKLYN-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228240#comment-15228240
 ] 

ASF GitHub Bot commented on BROOKLYN-248:
-----------------------------------------

Github user johnmccabe commented on the pull request:

    https://github.com/apache/brooklyn-server/pull/104#issuecomment-206374347
  
    I pulled and built a few minutes ago and tried with this catalog:
    ```
    brooklyn.catalog:
      version: 0.1.2
      items:
      - id: loc-common-base
        name: Base Location
        itemType: location
        item:
          type: localhost
          brooklyn.config:
            privateKeyFile: some common private key file
            privateKeyPassphrase: password
      - id: loc-based-on-common-base
        name: Derived Location
        itemType: location
        item:
          type: loc-common-base
          brooklyn.config:
            user: user-who-inherits-private-key-values
            password: password
    ```
    And I still see both locations `loc-common-base` and `loc-common-base` 
display with the name `Base Location`
    
    I also tried adding `displayName: XXXX Location` to each in 
`brooklyn.config` but see the same behaviour.
    
    On a slight tangent, building up locations from other locations lends 
itself to adding base locations that aren't useable by themselves, for example 
a base that only sets common private keys - currently those building-block locs 
show up in the list of locations via the jsgui - it'd be nice to have some way 
of flagging whether a location gets presented to a user in the UI - either a 
param or naming convention. Worth considering as a future enhancement?


> Incorrect name in derived locations
> -----------------------------------
>
>                 Key: BROOKLYN-248
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-248
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>         Environment: OSX
>            Reporter: Duncan Godwin
>
> The following location displays "Test Location 1" for both "Test Location 1" 
> and "Test Location 2" when you use it to launch an application.
> See the screenshot here: 
> https://s3.amazonaws.com/drigodwin-misc/brooklyn-248-ss.png
> {code}
> brooklyn.catalog:
>   version: 0.2.0
>   items:
>   - id: test-location-1
>     name: "Test Location 1"
>     itemType: location
>     item:
>       type: byon:(hosts="10.10.10.102")
>       brooklyn.config:
>         displayName: testingdisplayName
>         user: testinguser
>         password: testingpassword
>         privateKeyFile: testingprivateKeyFile
>         privateKeyPassphrase: testingprivateKeyPassphrase
>   - id: test-location-2
>     name: "Test Location 2"
>     itemType: location
>     item:
>       type: test-location-1
>       brooklyn.config:
>         displayName: testingdisplayName2
>         user: testinguser2
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to