Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed instance group comparison.

Fixed comparison made between value specified by group capistrano
directive and each instance group. Former implementation used
String#include? to compare, which doesn't match only the intended
group.
  • Loading branch information...
commit 967867fcc211dea18254c1689d9b78800af859a9 1 parent feecd82
Daniel Duvall authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/capistrano/ec2group.rb
2  lib/capistrano/ec2group.rb
@@ -21,7 +21,7 @@ def group(which, *args)
21 21
 
22 22
         @ec2_api.describe_instances.delete_if{|i| i[:aws_state] != "running"}.each do |instance|
23 23
           instance[:groups].each do |group|
24  
-            server(fetch(:aws_pvt_dns) ? instance[:private_dns_name] : instance[:dns_name], *args) if group[:group_name].include?(which.to_s)
  24
+            server(fetch(:aws_pvt_dns) ? instance[:private_dns_name] : instance[:dns_name], *args) if group[:group_name] == which.to_s
25 25
           end
26 26
         end
27 27
       end

0 notes on commit 967867f

Please sign in to comment.
Something went wrong with that request. Please try again.