Skip to content

Fixed current_resource.name assignment in providers.#205

Merged
tduffield merged 1 commit into
sous-chefs:masterfrom
PerfectMemory:fix-current-resource-name-in-providers
Oct 24, 2014
Merged

Fixed current_resource.name assignment in providers.#205
tduffield merged 1 commit into
sous-chefs:masterfrom
PerfectMemory:fix-current-resource-name-in-providers

Conversation

@jperville

Copy link
Copy Markdown
Contributor

While investigating another issue, I found out that the load_current_resource methods all providers initialize the current_resource with the new_resource instance. This is incorrect (even if this does not stop the resources from converging) but it makes inspecting the current_resource more difficult to read (the name attribute will be an object instead of the expected string).

In the example given in the official documentation the current_resource is instantiated using the new_resource name attribute, which is exactly what this PR does.

@tduffield

Copy link
Copy Markdown
Contributor

👍

tduffield pushed a commit that referenced this pull request Oct 24, 2014
…roviders

Use new_resource.name as parameter value instead of new_resource in providers.
@tduffield tduffield merged commit 2520194 into sous-chefs:master Oct 24, 2014
@jperville

Copy link
Copy Markdown
Contributor Author

Thank you very much for the merge @tduffield

@jperville jperville deleted the fix-current-resource-name-in-providers branch October 25, 2014 02:21
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.

2 participants