Skip to content

Commit

Permalink
Modified specs for subnet_public_ip_on_launch and ssh_connect_host
Browse files Browse the repository at this point in the history
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
  • Loading branch information
dheerajd-msys committed Dec 23, 2016
1 parent d8e9096 commit ca2ea1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ source 'https://rubygems.org'
gemspec

gem 'rb-readline'
gem 'pry'
gem 'byebug'
2 changes: 1 addition & 1 deletion lib/chef/knife/ec2_server_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ def ssh_connect_host
server.private_ip_address
else
connect_attribute = server.dns_name ? "dns_name" : "public_ip_address"
server.dns_name || server.public_ip_address
server.send(connect_attribute)
end
@ssh_connect_host = server.send(connect_attribute)
end
Expand Down

0 comments on commit ca2ea1b

Please sign in to comment.