-
Notifications
You must be signed in to change notification settings - Fork 932
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 does not parse integer for cups #193
Comments
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/73971288. |
@xtreme-sameer-vohra @tjarratt looks like the CLI is presuming your JSON conforms to This raises another issue. We can fix the JSON parameters pretty easily, but what about interactive parameters? Either we only allow string values, or we have to infer the type. Inference opens the door to inconsistency, if a value is supposed to be a string but can sometimes look like a number. |
Great point. Interactive mode certainly adds more complexity. I guess an option would be to require a user to specify the key + type when using interactive mode. Based on the examples shown in the CLI help for cups, I automatically assumed it would happily accept valid JSON. |
Based on the current API documentation, it seemingly does not specify what values you can store, so it seems reasonable to assume it allows nested objects and any valid JSON. I'm not a huge fan of the interactive mode (we tried really hard to remove this as much as possible for v6.0 because it makes scripting hard). My feeling is that we can make @tedsuo's proposed change to make the map a |
Fixes issue #193 [Finishes #73971288]
Fixed |
Fixes issue cloudfoundry#193 [Finishes #73971288]
Cli garbles the credentials section of a service when cups is used with a integer inside the params hash.
cf -v
is cf version 6.1.2-6a013caPort as integer
cf cups broken-service -p '{"hostname":"db.example.com", "port":3306}'
Port as string
cf cups working-service -p '{"hostname":"db.example.com", "port":"3306"}'
Output from logs/env.log for app bound to the two services above
The text was updated successfully, but these errors were encountered: