-
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
Fix in clearing space fields of config data on cf space-delete #309
Conversation
Before Fix: If cf user deleting the targeted space but with space name as case insenstive then space fields are not deleted from the config htipl@cf5:~/go/src/github.com/cloudfoundry/cli$ cf spaces Getting spaces in org SriniOrg as admin... name No spaces found htipl@cf5:~/go/src/github.com/cloudfoundry/cli$ cf target API endpoint: https://api.10.244.0.34.xip.io (API version: 2.13.0) User: admin Org: SriniOrg Space: SriniSpace After Fix:If cf user does same steps space fields are deleted from the config htipl@cf5:~/go/src/github.com/cloudfoundry/cli$ ./out/cf spaces Getting spaces in org SriniOrg as admin... name No spaces found htipl@cf5:~/go/src/github.com/cloudfoundry/cli$ ./out/cf target API endpoint: https://api.10.244.0.34.xip.io (API version: 2.13.0) User: admin Org: SriniOrg Space: No space targeted, use 'cf target -s SPACE' http://rnd-github.huawei.com/paas/cli/issues/28
Hey shashidharatd! Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you've already signed the CLA. |
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/83828548. |
@shashidharatd Can you explain this a bit more. I don't think your example show a |
Hi @goehmen The Basic issue is after deleting the space spacename(cf delete-space spacename) here the actual spacename is like SriniSpace but while deleting the space name we are giving case insenstive space name srinispace (all small letters instead of capital letter of S) cf delete-space srinispace then space is deleted properly but not the config data, so because of that if cf user does cf target still its showing API endpoint: https://api.10.244.0.34.xip.io (API version: 2.13.0) As shown below the org names & spaces name are case insenstive so SriniOrg ,sriniorg are same SriniSpace srinispace also same & the creation & deletion behaves properly but during cf delete-space the config data is not cleard properly. htipl@cf5:~/go/src/github.com/cloudfoundry/cli$ cf target API endpoint: https://api.10.244.0.34.xip.io (API version: 2.13.0) name name Really delete the space srinispace?> y name API endpoint: https://api.10.244.0.34.xip.io (API version: 2.13.0) |
Hi @goehmen Do you need any more information ? |
Fix in clearing space fields of config data on cf space-delete
It looks good to us. merging. |
Before Fix: If cf user deleting the targeted space but with space name as
case insenstive then space fields are not deleted from the config
htipl@cf5:
/go/src/github.com/cloudfoundry/cli$ cf spaces/go/src/github.com/cloudfoundry/cli$ cf targetGetting spaces in org SriniOrg as admin...
name
No spaces found
htipl@cf5:
API endpoint: https://api.10.244.0.34.xip.io (API version: 2.13.0)
User: admin
Org: SriniOrg
Space: SriniSpace
After Fix:If cf user does same steps
space fields are deleted from the config
htipl@cf5:
/go/src/github.com/cloudfoundry/cli$ ./out/cf spaces/go/src/github.com/cloudfoundry/cli$ ./out/cf targetGetting spaces in org SriniOrg as admin...
name
No spaces found
htipl@cf5:
API endpoint: https://api.10.244.0.34.xip.io (API version: 2.13.0)
User: admin
Org: SriniOrg
Space: No space targeted, use 'cf target -s SPACE'