Permalink
Browse files

Fix setting EC2 tags on slaves (broken in 1.17 by d5154c6).

  • Loading branch information...
1 parent 75090db commit fd5cd71e7b1165fa83b4b5b459ff62066b9ac171 @glasser glasser committed Apr 4, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main/java/hudson/plugins/ec2/SlaveTemplate.java
@@ -299,6 +299,7 @@ public EC2Slave provision(TaskListener listener) throws AmazonClientException, I
if (tags != null && !tags.isEmpty()) {
inst_tags = new HashSet<Tag>();
for(EC2Tag t : tags) {
+ inst_tags.add(new Tag(t.getName(), t.getValue()));
diFilters.add(new Filter("tag:"+t.getName()).withValues(t.getValue()));
}
}

0 comments on commit fd5cd71

Please sign in to comment.