Permalink
Browse files

fixed stupid nil bug

  • Loading branch information...
1 parent d92c820 commit b34a2b4590f32fd6cf00ba751e237558d1e2e61b @sdawara sdawara committed Oct 3, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/capify-ec2/capistrano.rb
  2. +1 −1 lib/capify-ec2/version.rb
@@ -56,7 +56,7 @@ 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)
+ named_instance = capify_ec2.get_instance_by_name(server_name) || ""
task named_instance.name.to_sym do
remove_default_roles
@@ -1,6 +1,6 @@
module Capify
module Ec2
- VERSION = "1.3"
+ VERSION = "1.3.1"
end
end

0 comments on commit b34a2b4

Please sign in to comment.