Ah OK :) I had in mind to look at it later and just went through it
without reading the thread again :)

Good to see it is working!

I.

On 3 June 2014 00:28, Daniel Widdis <wid...@gmail.com> wrote:
> Ignasi,
>
> As I impled earlier, it looks like it does work (I tested to be sure it
> worked for "ALL" and "PRIVATE" and did not work for "PUBLIC" in my setup). I
> was unaware of how the string-to-enum conversion worked, but Andrew
> indicated it was probably something in Guice, which was a good enough
> explanation for me!
>
> My only confusion was where the API said to set the string to PRIVATE rather
> than setting it to "PRIVATE", making me think it might have been looking for
> some other enum/constant rather than the (obvious in hindsight) string
> itself.
>
> As for my code, it's rather simple and I posted the relevant half of it
> already...  I import the appropriate property string:
>
> import static
> org.jclouds.compute.config.ComputeServiceProperties.SOCKET_FINDER_ALLOWED_INTERFACES;
>
> And then I assign it:
>
>
>     Properties overrides = new Properties();
>     overrides.setProperty(SOCKET_FINDER_ALLOWED_INTERFACES, "PRIVATE");
>
> And then the overrides(overrides) gets added onto the ContextBuilder.
>
> Dan
>
>
> On 6/2/14, 3:04 PM, Ignasi Barrera wrote:
>>
>>
>> Could you share your code in a Gist or Pastie so we can see if there
>> is something wrong?
>>
>>
>

Reply via email to