Skip to content
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

smctl status returns Object instead of Array of the entity errors #136

Open
freegroup opened this issue Aug 15, 2021 · 0 comments
Open

smctl status returns Object instead of Array of the entity errors #136

freegroup opened this issue Aug 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@freegroup
Copy link

we are working on an simple automation for our setup and we found a simple issue with the
smctl status output. The entity errors is an object instead of an array but the name of the attribute
is in plural which assumes that the entity can contain more than one entry.

Maybe the kind of the attribute should change to an array or the naming should be singular instead of plural.

If errorsis an array we can test on success very easy with jq and lenghtof the errors array...which is currently not possible.

 smctl status /v1/service_instances/69a5e6c1-555c-4f88-8925-5558eee12bab/operations/70407abc-9684-40e9-8b17-e6135355e5b6 -o json
{
  "id": "70407abc-9684-40e9-8b17-e6135355e5b6",
  "type": "create",
  "state": "failed",
  "resource_id": "69a5e6c1-555c-4f88-8925-5558eee12bab",
  "resource_type": "/v1/service_instances",
  "errors": {
    "error": "Conflict",
    "description": "instance with same name exists for the current tenant"
  },
  "created_at": "2021-08-15T09:37:41.609766Z",
  "updated_at": "2021-08-15T09:37:41.692213Z",
  "labels": {
    "subaccount_id": [
      "bfcdee60-9ef8-43a7-8dbe-71b7e98e87dc"
    ]
  }
}
 
@EpsilonTal EpsilonTal added the enhancement New feature or request label Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants