Allow jclouds to provision SoftLayer instances with a private image. Fix

Bug JCLOUDS-1410.
This commit is contained in:
Tom McLaughlan 2018-04-17 15:46:55 +01:00 committed by Ignasi Barrera
parent 06e10864c2
commit a537ca42eb
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ public class SoftLayerComputeServiceAdapter implements
// set operating system or blockDeviceTemplateGroup
Optional<OperatingSystem> optionalOperatingSystem = tryExtractOperatingSystemFrom(imageId);
if (optionalOperatingSystem != null) {
if (optionalOperatingSystem.isPresent()) {
virtualGuestBuilder.operatingSystem(optionalOperatingSystem.get());
// the imageId specified is an id of a public/private/flex image
} else {