> - return compose(new Function<Credentials, String>() {
> - public String apply(Credentials in) {
> - checkState(in.identity.indexOf("@") != 1, "identity should be in
> [email protected]" +
> - " format");
> - return Iterables.get(Splitter.on("@").split(in.identity), 0);
> - }
> - }, creds);
> + public Supplier<String> supplyProject(@org.jclouds.location.Provider
> final Supplier<Credentials> creds,
> + final GoogleComputeEngineApi api,
> +
> AtomicReference<AuthorizationException> authException,
> + @Named(PROPERTY_SESSION_INTERVAL)
> long seconds) {
> + return
> MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.create(authException,
> + compose(new Function<Credentials, String>() {
> + public String apply(Credentials in) {
> + checkState(in.identity.indexOf("@") != 1, "identity
> should be in [email protected]" +
> + " format");
Legacy, I think. Fixing.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/16/files#r5378383