Permalink
Browse files

public_hostname adjustment

  • Loading branch information...
1 parent 1116450 commit 19cc4af2c97f0cf9c4a6e1d86ae6d6acda0846af @nitsujw committed Sep 26, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/capistrano/chef.rb
View
@@ -26,7 +26,8 @@ def self.search_chef_nodes(query = '*:*', arg = :ipaddress, limit = 1000)
addresses.select{|address, data| data["family"] == family }.to_a.first.first
end
when Symbol, String
- Proc.new{|n| n[arg.to_s]}
+ #Proc.new{|n| n[arg.to_s]}
+ Proc.new{|n| n['cloud']['public_hostname'] }
else
raise ArgumentError, 'Search arguments must be Proc, Hash, Symbol, String.'
end

0 comments on commit 19cc4af

Please sign in to comment.