-
Notifications
You must be signed in to change notification settings - Fork 931
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
CLI v7.1.0 "env" command panics if a variable contains values in "{{ }}" #2116
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/175814843 The labels on this github issue will be updated when the story is started. |
Hello, |
Same issue occurs with CLI v8.0.0 + with the following env variable: env:
SOME-ENV: "{{\"my-json\":\"value\"}}" |
Same here:
Any info on this one? I will gladly pick it up when I find time if needed |
Is this issue is going to be addressed? It happens also in our scenario see here: #2381 in version 8.5.0. |
This issue has been fixed by the PR. So closing it. |
CF_TRACE=1
to help debug the issue.Describe the bug and the command you saw an issue with
We've run
cf7 env <appname>
and the command paniced with:Calling
cf6 env <appname>
worked. The problematic environment variable seems to be this one:The
app_router_url
is interpreted as function call by the GoLang template package. As it is nowhere defined, this call panics:cli/util/ui/i18n.go
Line 119 in b823ae5
What happened
(see description)
Expected behavior
We expected the application's environment variables to be printed.
Exact Steps To Reproduce
With CF CLI v7.1.0,
Provide more context
Platform:
CF CLI versions:
cf7 version 7.1.0+4c3168f9a.2020-09-09 (doesn't work)
cf6 version 6.53.0+8e2b70a4a.2020-10-01 (works)
capi-release: 1.98.0
Notes regarding V6 and V7 CLI support:
The text was updated successfully, but these errors were encountered: