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

template.replace() can't replace a map item with the same key #704

Open
pivotaljohn opened this issue Jul 11, 2022 · 0 comments
Open

template.replace() can't replace a map item with the same key #704

pivotaljohn opened this issue Jul 11, 2022 · 0 comments
Labels
bug This issue describes a defect or unexpected behavior priority/unprioritized-backlog Higher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome.

Comments

@pivotaljohn
Copy link
Contributor

What steps did you take:

#@ load("@ytt:template", "template")
_: #@ template.replace({"_": "1"})

What happened:

ytt: Error:
- template.replace: expected to find placeholder map item in map
    in <toplevel>
      ex2.yaml:2 | _: #@ template.replace({"_": "1"})

What did you expect:
The map item to simply be replaced.

Anything else you would like to add:
#carvel @ 2022-07-11

Environment:

  • ytt version (use ytt --version):
  • OS (e.g. from /etc/os-release):

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

@pivotaljohn pivotaljohn added bug This issue describes a defect or unexpected behavior carvel triage This issue has not yet been triaged for relevance priority/unprioritized-backlog Higher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome. and removed carvel triage This issue has not yet been triaged for relevance labels Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a defect or unexpected behavior priority/unprioritized-backlog Higher priority than priority/awaiting-more-evidence but not planned. Contributions are welcome.
Projects
Status: To Triage
Development

No branches or pull requests

1 participant