cli icon indicating copy to clipboard operation
cli copied to clipboard

CF cli not displaying route service url on "cf service <service name>"

Open jeffleecoffee opened this issue 8 years ago • 8 comments

  • [x] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
  • [x] I attempted to run the command with CF_TRACE=1 to help debug the issue.
  • [x] I am reporting a bug that others will be able to reproduce.

Describe the bug and the command you saw an issue with I was attempting to debug my user-provided-service route. However, I found that I could not see which route_service_url was already set. result

Expected behavior the CLI should display the route_service_url

To Reproduce Steps to reproduce the behavior; include the exact CLI commands and verbose output:

  1. Run cf cups authz -r <some https://URL>
  2. Bind a route-service cf bind-route-service <domain> authz --hostname <host url>
  3. 'cf service authz' route_service_url should be <some https://URL>

Provide more context

  • I am running Ubuntu 18.04.1 LTS
  • cf version 6.40.1+85d04488a.2018-10-31

jeffleecoffee avatar Nov 25 '18 09:11 jeffleecoffee

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/162181639

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Nov 25 '18 09:11 cf-gitbot

Hey @jeffleecoffee thank you for the issues. We've dragged this to our Icebox and it should get prioritized soon.

georgi-lozev avatar Nov 27 '18 13:11 georgi-lozev

Also @jeffleecoffee if you pass -v you can see the route_service_url in the JSON that gets printed. I know reading JSON is no fun, but it might help you in the meantime to at least be able to access the information you need.

@georgi-lozev It looks like CC API already returns the information we need, but we're just not displaying it for some reason, so this story shouldn't be a heavy lift.

willmurphyscode avatar Nov 27 '18 17:11 willmurphyscode

@georgi-lozev and @willmurphyscode thank you for the prompt response and the suggestion.

jeffleecoffee avatar Nov 28 '18 07:11 jeffleecoffee

Hello @georgi-lozev and @willmurphyscode, I've been looking forward to making a contribution for the CLI, is it cool if I work on this bug as my first commit?

jeffleecoffee avatar Dec 04 '18 08:12 jeffleecoffee

Hello @jeffleecoffee, We'd be delighted if you contribute the fix. Please make sure you have read the contributors guide.

nmaslarski avatar Dec 04 '18 11:12 nmaslarski

Thanks for your contribution @jeffleecoffee! This is now in.

laurzca avatar Dec 13 '18 18:12 laurzca

Thanks @laurzca, it was fun to confirbute. I am looking forward to doing more in the future!

jeffleecoffee avatar Dec 14 '18 02:12 jeffleecoffee