[
https://issues.apache.org/jira/browse/BROOKLYN-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15307439#comment-15307439
]
ASF GitHub Bot commented on BROOKLYN-271:
-----------------------------------------
Github user kiuby88 commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/146#discussion_r65141146
--- Diff:
locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/BrooklynImageChooser.java
---
@@ -371,7 +371,12 @@ public ImageChooserFromOrdering cloneFor(ConfigBag
config) {
} else {
return this;
}
- }
+ }
+
+ @Override
+ public String toString(){
+ return getClass().getName();
+ }
--- End diff --
@aledsage, this tries to avoid the following entry in the catalog for
`JcloudsLocation`.
<img width="962" alt="captura de pantalla 2016-05-31 a la s 10 24 10"
src="https://cloud.githubusercontent.com/assets/3704424/15668131/002369d6-271a-11e6-9134-67df64155a9e.png">
I think this impl is enough, maybe
[ordering](https://github.com/apache/brooklyn-server/blob/master/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/BrooklynImageChooser.java#L330)?
> ConfigKey card shows object hashCode of default values
> ------------------------------------------------------
>
> Key: BROOKLYN-271
> URL: https://issues.apache.org/jira/browse/BROOKLYN-271
> Project: Brooklyn
> Issue Type: Documentation
> Reporter: Jose Carrasco
> Priority: Minor
>
> ConfigKey cards of Entities show the object references in Brooklyn Catalog
> when a default value is a object. Take a look to the following screenshot:
> !https://www.dropbox.com/s/rav70zzleyhnd4q/objectId.png?dl=1!
> As you can see the default value is composed by:
> {code}
> getClass().getName() + '@' + Integer.toHexString(hashCode())
> {code}
> Probably just class name should be shown here.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)