diff --git a/jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsSlaveTemplate.java b/jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsSlaveTemplate.java index b3c24c78..6818e044 100644 --- a/jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsSlaveTemplate.java +++ b/jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsSlaveTemplate.java @@ -270,6 +270,7 @@ public NodeMetadata get() { if (assignFloatingIp && options instanceof NovaTemplateOptions) { LOGGER.info("Setting autoAssignFloatingIp to true"); options.as(NovaTemplateOptions.class).autoAssignFloatingIp(true); + options.as(NovaTemplateOptions.class).shouldAutoAssignFloatingIp(); } if (!Strings.isNullOrEmpty((keyPairName)) && options instanceof NovaTemplateOptions) {