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

provider/cloudstck: refactor the use of names vs IDs for parameters referencing other TF resources #6123

Merged
merged 1 commit into from
Apr 12, 2016

Conversation

svanharmelen
Copy link
Contributor

We have a curtesy function in place allowing you to specify both a name or ID. But in order for the graph to be build correctly when you recreate or taint stuff that other resources depend on, you need to
reference the ID and not the name.

So in order to enforce this and by that help people to not make this mistake unknowingly, we deprecated all the parameters this applies to and changed the logic, docs and tests accordingly.

…resources

We have a curtesy function in place allowing you to specify both a
`name` of `ID`. But in order for the graph to be build correctly when
you recreate or taint stuff that other resources depend on, we need to
reference the `ID` and *not* the `name`.

So in order to enforce this and by that help people to not make this
mistake unknowingly, I deprecated all the parameters this allies to and
changed the logic, docs and tests accordingly.
@svanharmelen svanharmelen changed the title Refactor the use of names vs IDs for parameters referencing other TF resources provider/cloudstck: refactor the use of names vs IDs for parameters referencing other TF resources Apr 11, 2016
@svanharmelen
Copy link
Contributor Author

@phinze if you have a few minutes to 👀 this one, that would be great... It are a lot of files, but the changes are easy to see. Of course I executed all acceptance tests before making the PR 😉

@phinze
Copy link
Contributor

phinze commented Apr 12, 2016

@svanharmelen gave it a once over - LGTM! 👍

@svanharmelen svanharmelen merged commit 4db1af8 into hashicorp:master Apr 12, 2016
@svanharmelen svanharmelen deleted the f-cloudstack-id branch April 12, 2016 16:34
@svanharmelen
Copy link
Contributor Author

Thanks @phinze!

@ghost
Copy link

ghost commented Apr 26, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants