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

allow map keys to be templatized #9324

Merged
merged 1 commit into from Jun 14, 2016

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Jun 14, 2016

Fixes #9321

newKey := visitUnsettableValues(oldKey.Type(), oldKey, visitor)
oldValue := v.MapIndex(oldKey)
newValue := visitUnsettableValues(vt, oldValue, visitor)
v.SetMapIndex(oldKey, reflect.Value{})
Copy link
Contributor

Choose a reason for hiding this comment

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

is this really how you "remove" a value from a map?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course, this is go!

@bparees
Copy link
Contributor

bparees commented Jun 14, 2016

lgtm [merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Jun 14, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4857/) (Image: devenv-rhel7_4374)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to b469465

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@deads2k
Copy link
Contributor Author

deads2k commented Jun 14, 2016

yum, re[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to b469465

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4857/)

@openshift-bot openshift-bot merged commit ad1561e into openshift:master Jun 14, 2016
@deads2k deads2k deleted the template-key branch September 6, 2016 17:17
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.

None yet

3 participants