Skip to content
Permalink
Browse files

Fix for JENKINS-9415

  • Loading branch information...
vjuranek committed Apr 18, 2011
1 parent ecdd3b9 commit c1e1de9a8ee1173c7131881d14abf53b0aebcad1
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/main/java/hudson/plugins/ec2/SlaveTemplate.java
@@ -196,7 +196,6 @@ public FormValidation doValidateAmi(
images.add(ami);
List<String> owners = new LinkedList<String>();
List<String> users = new LinkedList<String>();
users.add("self"); // if we can't run it its not useful.
List<ImageDescription> img = jec2.describeImages(images, owners, users);
if(img==null || img.isEmpty())
// de-registered AMI causes an empty list to be returned. so be defensive

0 comments on commit c1e1de9

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.