Permalink
Browse files

argh introduced another bug

  • Loading branch information...
1 parent b34a2b4 commit aa34d9ef631d1c8ae27ce2ac079f543350b6e6e9 @sdawara sdawara committed Oct 3, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/capify-ec2/capistrano.rb
  2. +1 −1 lib/capify-ec2/version.rb
View
4 lib/capify-ec2/capistrano.rb
@@ -55,8 +55,8 @@ def capify_ec2
def ec2_roles(*roles)
server_name = variables[:logger].instance_variable_get("@options")[:actions].first unless variables[:logger].instance_variable_get("@options")[:actions][1].nil?
- if !server_name.nil?
- named_instance = capify_ec2.get_instance_by_name(server_name) || ""
+ if !server_name.nil? && !server_name.empty?
+ named_instance = capify_ec2.get_instance_by_name(server_name)
task named_instance.name.to_sym do
remove_default_roles
View
2 lib/capify-ec2/version.rb
@@ -1,6 +1,6 @@
module Capify
module Ec2
- VERSION = "1.3.1"
+ VERSION = "1.3.2"
end
end

0 comments on commit aa34d9e

Please sign in to comment.