Skip to content
Permalink
Browse files
fix JENKINS-22587 (JClouds does not honor security group against Open…
…Stack)
  • Loading branch information
arthyrik committed Sep 1, 2015
1 parent 20c6ca8 commit ad0db36ac09fb51caf4a0491da81779a6f85184d
Showing with 6 additions and 1 deletion.
  1. +6 −1 jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsSlaveTemplate.java
@@ -264,7 +264,12 @@ public NodeMetadata get() {

if (!Strings.isNullOrEmpty(securityGroups)) {
LOGGER.info("Setting security groups to " + securityGroups);
options.securityGroups(csvToArray(securityGroups));
String[] securityGroupsArray = csvToArray(securityGroups);
options.securityGroups(securityGroupsArray);

if (options instanceof NovaTemplateOptions) {
options.as(NovaTemplateOptions.class).securityGroupNames(securityGroupsArray);
}
}

if (assignFloatingIp && options instanceof NovaTemplateOptions) {

0 comments on commit ad0db36

Please sign in to comment.