From a537ca42ebc3292ea6040698a83408dec0dc74cd Mon Sep 17 00:00:00 2001 From: Tom McLaughlan Date: Tue, 17 Apr 2018 15:46:55 +0100 Subject: [PATCH] Allow jclouds to provision SoftLayer instances with a private image. Fix Bug JCLOUDS-1410. --- .../compute/strategy/SoftLayerComputeServiceAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java index e5f34f67b4..69dfb9091c 100644 --- a/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java +++ b/providers/softlayer/src/main/java/org/jclouds/softlayer/compute/strategy/SoftLayerComputeServiceAdapter.java @@ -158,7 +158,7 @@ public class SoftLayerComputeServiceAdapter implements // set operating system or blockDeviceTemplateGroup Optional 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 {