jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs] CloudSigma2 ComputeService and SecurityGroupExtension (#70)
Date Sun, 21 Sep 2014 15:01:38 GMT
> +      builder.userMetadata(serverInfo.getMeta());
> +      builder.imageId(extractImageId(serverInfo));
> +      builder.status(serverStatusToNodeStatus.get(serverInfo.getStatus()));
> +      builder.publicAddresses(filter(transform(serverInfo.getNics(), nicToAddress),
notNull()));
> +
> +      // CloudSigma does not provide a way to get the credentials.
> +      // Try to return them from the credential store
> +      Credentials credentials = credentialStore.get("node#" + serverInfo.getUuid());
> +      if (credentials instanceof LoginCredentials) {
> +         builder.credentials(LoginCredentials.class.cast(credentials));
> +      }
> +
> +      return builder.build();
> +   }
> +
> +   private String extractImageId(ServerInfo serverInfo) {

[minor] Can be static?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/70/files#r17825980
Mime
View raw message