jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <notificati...@github.com>
Subject Re: [jclouds] Skip malformed image entries returned by Softlayer (#743)
Date Tue, 12 May 2015 07:14:52 GMT
>           @Override
>           public OperatingSystem apply(ContainerVirtualGuestConfigurationOption input)
{
> -            return OperatingSystem.builder()
> -                    .id(input.getTemplate().getOperatingSystemReferenceCode())
> -                    .operatingSystemReferenceCode(input.getTemplate().getOperatingSystemReferenceCode())
> -                    .build();
> +            if (input.getTemplate().getOperatingSystemReferenceCode() != null) {

I prefer `fail-fast`so first `== null`, but not strong feelings

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