Permalink
Browse files

Merge pull request #42 from meteor/set-tags

Fix setting EC2 tags on slaves (broken in 1.17 by d5154c6).
  • Loading branch information...
2 parents 75090db + fd5cd71 commit 1ffecc4e28eb26ad570f224b1ef38054336fa3d8 @francisu francisu 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 1ffecc4

Please sign in to comment.