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

Dimension values are separated by extra spaces when other dimension values are empty strings. #3474

Closed
karanpopat opened this issue May 23, 2023 · 0 comments
Labels
bug Something isn't working cli output

Comments

@karanpopat
Copy link

karanpopat commented May 23, 2023

Describe the bug
Here's an export from steampipe check

{
  "reason": "jenkins not using the default namespace.",
  "resource": "/Users/karanpopat/work/steampipe/kubernetes/steampipe-plugin-kubernetes/k8s-test/tests/kubernetes_service_account/service-account.yaml:33",
  "status": "ok",
  "dimensions": [
    {
      "key": "role_binding_name",
      "value": "jenkins"
    },
    {
      "key": "context_name",
      "value": ""
    },
    {
      "key": "namespace",
      "value": ""
    },
    {
      "key": "source_type",
      "value": "manifest"
    }
  ]
},

where the value for keys context_name and namespace is an empty string "". Due to this, we see spaces in between other values in the terminal view

image

Steampipe version (steampipe -v)
Example: v0.20.2

Expected behavior

CLI outputs the dimension values, separated by a space.
So, if the dimension values are:

foo
<empty>
bar

The output will be:

foo <empty> bar

Which displays as:

foo bar

It should be:

foo bar

@karanpopat karanpopat added bug Something isn't working cli output labels May 23, 2023
@binaek binaek closed this as completed in feaeeb5 Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli output
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant