-
Notifications
You must be signed in to change notification settings - Fork 929
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
cf cli 6.37.0: --vars-file and --var 'invalid flag' #1399
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/158361861 The labels on this github issue will be updated when the story is started. |
@unnmdnwb3 I'm having EXACTLY the same behavior as you described. That's somehow sad since I was eager for having such feature. My operating system is MacOS 10.12.6, and using |
Hi @unnmdnwb3 thanks for creating this issue. Could you try the following instead |
Hey @unnmdnwb3 @gsmachado we figured out that you might be using the variable substitution features in a plugin, which we do not support. Let us know if that's the case, thanks. |
Note: It appears that if variable substitution is used with deprecated properties ( |
hey @abbyachau, thanks a lot for your answer and sorry for replying so late, I was away for a few days. you were absolutely right - it's working now! the problem was this: after specifying these attributes below the thanks alot again! :) |
Awesome @unnmdnwb3 great to hear, thanks for the update. We updated command line output to give a warning that using variable substitution and deprecated values is not allowed. Hope that helps reduce confusion in the future. |
@abbyachau thanks for taking a look at it and with a fast response. Much appreciated. :-) |
@abbyachau You say variable substitution is not supported in plugins... Will it be supported in the future or is there some reason why this isn't/won't be allowed? |
Hey there @bpandola, The [really] short answer is that all plugins use a legacy code path that does not have access to any new CLI feature as of CF The long[er] answer requires understanding how the overall CLI architecture. Again, to keep things brief I'll summarize as much as I can. Architecture wise:
|
Closing this issue as we will release cf cli |
@XenoPhex While I'm disappointed that plugins will not have access to newer CLI features, I do very much appreciate the detailed response (and will move forward with a workaround). Thanks. |
hey everyone, I got some issues with the
--vars-file
and--var
... thanks in advance!Command
cf push frontend -p frontend/dist -f ./deployment-manifests/demo-launchpad/DEV/DEV-frontend-manifest.yml --vars-file ./deployment-manifests/demo-launchpad/DEV/DEV-config.yml
and
cf push frontend -p frontend/dist -f ./deployment-manifests/demo-launchpad/DEV/DEV-frontend-manifest.yml --var customer-id=test
What occurred
Invalid flag: --vars-file
&Invalid flag: --var
What you expected to occur
Variable Substitution as described in: https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html
CLI Version
cf.exe version 6.37.0+a40009753.2018-05-25
CC API Endpoint Version
2.107.0
Platform & Shell Details
Microsoft Windows Enterprise 64-bit with MINGW64 and CMD
The text was updated successfully, but these errors were encountered: