whirr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell Jurney <russell.jur...@gmail.com>
Subject Re: How to get blobstore identity and credential?
Date Tue, 27 Aug 2013 19:58:28 GMT
Thanks!


On Tue, Aug 27, 2013 at 12:54 PM, Andrei Savu <savu.andrei@gmail.com> wrote:

> You have to get them from the ClusterSpec instance:
>
>
>
>
> identity = spec.getIdentity();
>
>
> credential = spec.getCredential();
>
>
>
> See:
> https://github.com/apache/whirr/blob/trunk/core/src/main/java/org/apache/whirr/service/ComputeCache.java
>
>
> -- Andrei Savu / axemblr.com
>
>
> On Tue, Aug 27, 2013 at 10:50 PM, Russell Jurney <russell.jurney@gmail.com
> > wrote:
>
>>  Currently I do this:
>>
>>         String key = (String)conf.getProperty("whirr.identity");
>>         String auth = (String)conf.getProperty("whirr.credential");
>>         System.err.print("Key: " + key + "\n");
>>         System.err.print("Auth: " + auth + "\n");
>>
>> It returns this:
>>         Key: ${env:WHIRR_IDENTITY}
>>         Auth: ${env:WHIRR_CREDENTIAL}
>>         Key: ${env:WHIRR_IDENTITY}
>>         Auth: ${env:WHIRR_CREDENTIAL}
>>         Key: ${env:WHIRR_IDENTITY}
>>         Auth: ${env:WHIRR_CREDENTIAL}
>>         Key: ${env:WHIRR_IDENTITY}
>>         Auth: ${env:WHIRR_CREDENTIAL}
>>
>> How can I get the actual credential/identity value? I need them to fill
>> out a configuration for my service.
>>  --
>> Russell Jurney twitter.com/rjurney russell.jurney@gmail.com datasyndrome.
>> com
>>
>
>


-- 
Russell Jurney twitter.com/rjurney russell.jurney@gmail.com datasyndrome.com

Mime
View raw message