Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query correct instance object for hostname fixes #148 #151

Merged
merged 2 commits into from
Jun 8, 2015

Conversation

tyler-ball
Copy link
Contributor

I introduced a regression where we use an old aws object to fetch connection information instead of the new object we queried to make sure it is ready

fixes #148

@@ -201,7 +201,6 @@ def create(state) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
wait_until_ready(server, state)

info("EC2 instance <#{state[:server_id]}> ready.")
state[:hostname] = hostname(server)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that I reassign the server object passed into wait_until_ready, so the server object here refers to the first iteration of it (before we continually updated it by querying for its hostname)

…nection information instead of the new object we queried to make sure it is ready, fixes #148
@helgi
Copy link

helgi commented Jun 5, 2015

👍 pulling in this branch made things function again around the connections

@tyler-ball tyler-ball self-assigned this Jun 8, 2015
tyler-ball added a commit that referenced this pull request Jun 8, 2015
Query correct instance object for hostname fixes #148
@tyler-ball tyler-ball merged commit f6a3f31 into master Jun 8, 2015
@tyler-ball tyler-ball deleted the tball/more-bugs branch June 8, 2015 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

You broke Chef's Travis CI tests =)
2 participants