Skip to content

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

@SippingTheKoolaid

Description

@SippingTheKoolaid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions