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

adding the ability to redeploy a remote deployment #258

Merged
merged 1 commit into from
Dec 15, 2014

Conversation

dharmamike
Copy link
Collaborator

Signed-off-by: Gary Paige gary@theoryblister.com

@dharmamike dharmamike force-pushed the feature/redeploy-83325574 branch 2 times, most recently from 3e13e44 to 1a7f015 Compare December 12, 2014 16:06
Signed-off-by: Gary Paige <gary@theoryblister.com>
raise 'deployment not found'
else
raise response.body['message']
end
end
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The methods in this service weren't properly dealing with calls to the agent that might result in a 500 status. As a result, in cases where the method attempted to create a RemoteDeployment from the http response, a NoMethodError would be raised due to an attempt to call message= on the new RemoteDeployment instance (this is because the 500 errors from the agent include a JSON body with a "method" attribute). This error has actually shown up in the UI and we didn't know why. This explains it, and this new #handle_agent_response method fixes it, propagating the error message up to the local agent error handler.

@bdehamer
Copy link
Collaborator

👍

1 similar comment
@rheinwein
Copy link
Collaborator

👍

@dharmamike dharmamike merged commit 23ec15e into master Dec 15, 2014
@dharmamike dharmamike deleted the feature/redeploy-83325574 branch June 3, 2015 13:58
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.

3 participants