Skip to content

Deleting a service key results in unwanted error #4173

@danail-branekov

Description

@danail-branekov

What happened

Create a managed service instance, create a service key, then deete the key

  • cf create-service example-service example-plan myinstance
  • cf create-service-key myinstance mykey
  • cf delete-service-key myinstance mykey

The last command above returns a confusing error, but when I list the service keys for "myinstance" the key being deleted is gone

What did I expect ot happen

Deleting the service key should have succeeded

Dev notes

  • When deleting the binding our handler does not differentiate between app and key types and always tries to lookup the app. However when the binding type is "key", the app ref is an empty string, so no app can be looked up

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions