Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Commit

Permalink
Merge pull request #19 from tomconroy/feature-patch-tags
Browse files Browse the repository at this point in the history
Fix error from instance.tags[key] returning nil
  • Loading branch information
rjocoleman committed Jun 9, 2014
2 parents c4b23f7 + eb6b094 commit 0ffe0f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cap-ec2/ec2-handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_servers_for_role(role)
private

def instance_has_tag?(instance, key, value)
instance.tags[key].split(',').map(&:strip).include?(value.to_s)
(instance.tags[key] || '').split(',').map(&:strip).include?(value.to_s)
end
end
end

0 comments on commit 0ffe0f2

Please sign in to comment.