Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Fix argument order in function call for policy updates #18

Merged
merged 1 commit into from
Jun 27, 2018
Merged

Fix argument order in function call for policy updates #18

merged 1 commit into from
Jun 27, 2018

Conversation

cpuspellcaster
Copy link
Contributor

I ran into bug where attempting to apply policy updates would result in 404 errors being returned from the RabbitMQ API. In the call to putPolicy() from UpdatePolicy(), t he argument order was wrong, passing in the vhost value into the user argument and vice-versa (comparatively, the correct call is made in CreatePolicy()). Fixing the order resolved the issue with 404 being issued by the RabbitMQ API.

Copy link
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

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

LGTM - thank you!

On this note, I'm going to do a follow-up PR to s/user/name for consistency.

@jtopjian jtopjian merged commit c55b918 into hashicorp:master Jun 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants