whirr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Savu <savu.and...@gmail.com>
Subject Re: How to get blobstore identity and credential?
Date Tue, 27 Aug 2013 19:54:48 GMT
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
>

Mime
View raw message