jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] JCLOUDS-702: JClouds ProfitBricks provider - ComputeServiceAdapter (#145)
Date Tue, 03 Mar 2015 22:14:08 GMT
> +                 .serverId(serverId)
> +                 .build());
> +
> +         waitDcUntilAvailable.apply(dataCenterId);
> +         logger.trace(">> storage connected.");
> +      }
> +
> +      Server server = getNode(serverId);
> +
> +      LoginCredentials serverCredentials = LoginCredentials.builder()
> +              .user("root") // always root user
> +              .password(password)
> +              .build();
> +
> +      return new NodeAndInitialCredentials<Server>(server, serverId, serverCredentials);
> +   }

This method creates several resources in the provider. If it fails at some point, we should
take care of rolling back the created stuff (at least we should try), in order to avoid leaking
resources.

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