> + }
> +
> + private Iterable<String> getPrivateIpAddresses(Container container) {
> + if (container.getNetworkSettings() == null) return ImmutableList.of();
> + return ImmutableList.of(container.getNetworkSettings().getIpAddress());
> + }
> +
> + private List<String> getPublicIpAddresses() {
> + String dockerIpAddress =
> URI.create(providerMetadata.getEndpoint()).getHost();
> + return ImmutableList.of(dockerIpAddress);
> + }
> +
> + protected static int getLoginPort(Container container) {
> + if (container.getNetworkSettings() != null) {
> + Map<String, List<Map<String,String>>> ports =
> container.getNetworkSettings().getPorts();
> + if(ports != null) {
Add a space after the `ìf``.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12936985