IBM-Cloud / ibm-cloud-cli-release

Apache License 2.0
155 stars 76 forks source link

Discrepancy in output from `ibmcloud config --list` versus `ibmcloud config --list --output JSON` #204

Open SippingTheKoolaid opened 8 months ago

SippingTheKoolaid commented 8 months ago

Issue

Output from the command ibmcloud config --list --output JSON does not appear reflective of the actual settings with respect to config settings for --sso-otp and --check-version. The json values for SSOType or VersionCheckEnabled do not reflect configured values.

Version

ibmcloud version 2.24.0+b6c228b-2024-03-21T18:54:40+00:00

System

Apple M1 MacOS Sonoma 14.4

Example 1

ibmcloud config --list with config settings of --sso-otp manual and --check-version true returns:

Name                        Value
Color enabled               -
HTTP timeout (Second)       0
Trace                       -
SSO OTP Type                manual
User locale                 -
Check CLI version enabled   true

while ibmcloud config --list --output JSON with those same config settings returns:

{
    "ColorEnabled": "",
    "HTTPTimeout": "0",
    "Trace": "",
    "SSOType": "",
    "UserLocale": "",
    "VersionCheckEnabled": "false"
}

Example 2

ibmcloud config --list with config settings of --sso-otp auto and --check-version false returns:

Name                        Value
Color enabled               -
HTTP timeout (Second)       0
Trace                       -
SSO OTP Type                auto
User locale                 -
Check CLI version enabled   false

while ibmcloud config --list --output JSON with those same config settings returns:

{
    "ColorEnabled": "",
    "HTTPTimeout": "0",
    "Trace": "",
    "SSOType": "",
    "UserLocale": "",
    "VersionCheckEnabled": "true"
}

Other config settings (--http-timeout, --trace, --locale, --color) reflect their set values when output as json.

steveclay commented 8 months ago

Thank you for pointing this out. We will address this.