ionos-cloud / ionosctl

The IONOS Cloud CLI (ionosctl) gives the ability to manage IONOS Cloud infrastructure directly from Command Line.
Apache License 2.0
30 stars 6 forks source link

Server, Volume and NIC list columns flag is broken #254

Closed avorima closed 1 year ago

avorima commented 1 year ago

Description

The --cols flag does not work for the following commands:

The input values are ignored and the default columns are always printed.

It could be broken for more commands.

Expected behavior

The --cols flag limits the columns that are printed, e.g. --cols Name only prints resource names.

Environment

Ionosctl version:

IONOS Cloud CLI version: v6.5.0
SDK GO version: 6.1.3
SDK GO DBaaS Postgres version: 1.0.4
SDK GO Auth version: 1.0.5

OS:

Linux

Shell:

zsh

Configuration Files

How to Reproduce

Compare the output of

ionosctl server list --cols Name --datacenter-id SOME_ID

with the output of

ionosctl datacenter list --cols Name

Additional Notes

It seems that columns work for "global" resources, i.e. things that do not require an ID to list. I checked the following commands:

avirtopeanu-ionos commented 1 year ago

Hi, this should have been fixed already, can you re-check with the latest version (v6.5.2)?

avorima commented 1 year ago

Yes, you're right. Thanks