> +      builder.operatingSystem(image.getOperatingSystem());
> +
> +      builder.status(toPortableStatus.apply(input.getStatus()));
> +      builder.backendStatus(input.getStatus().name());
> +
> +      if (input.getIp() != null) {
> +         builder.publicAddresses(ImmutableSet.of(input.getIp()));
> +      }
> +      if (input.getPrivateIp() != null) {
> +         builder.privateAddresses(ImmutableSet.of(input.getPrivateIp()));
> +      }
> +
> +      // DigitalOcean does not provide a way to get the credentials.
> +      // Try to return them from the credential store
> +      Credentials credentials = credentialStore.get("node#" + input.getId());
> +      if (credentials != null && credentials instanceof LoginCredentials) {

No need for the `null` check? `null` is not an `instanceof` anything, so the 
second check will fail if `credentials == null`.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9152061

Reply via email to