Re: Getting NodeMetadata available to entities

2018-01-23 Thread Richard Downer
Hi Alex, On 23 January 2018 at 10:39, Alex Heneveld wrote: > What values does it need? Would it make sense to put it into > BasicMachineMetadata and adjust JcloudsLocation.getMachineMetadata to add > it for everything? > That would be a good solution for the medium or long term - there's not m

Re: Getting NodeMetadata available to entities

2018-01-23 Thread Alex Heneveld
Richard, What values does it need? Would it make sense to put it into BasicMachineMetadata and adjust JcloudsLocation.getMachineMetadata to add it for everything? The other option if you want to opt-in at an initializer is for it to do `location.getConfig(CALLER_CONTEXT)` -- there isn't gu

Getting NodeMetadata available to entities

2018-01-23 Thread Richard Downer
Hi all. I'm trying to solve a problem which basically involves getting a value from the jclouds `NodeMetadata` into a sensor on all entities in that `JcloudsLocation`. A `JcloudsLocationCustomizer` would appear to be useful as it gets all the `NodeMetadata`, but as it doesn’t get a reference to th