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

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

Open
SippingTheKoolaid opened this issue Mar 27, 2024 · 2 comments

Comments

@SippingTheKoolaid
Copy link

SippingTheKoolaid commented Mar 27, 2024

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.

@SippingTheKoolaid SippingTheKoolaid changed the title [BUG] discrepancy in output from ibmcloud config --list versus ibmcloud config --list --output JSON Discrepancy in output from ibmcloud config --list versus ibmcloud config --list --output JSON Mar 27, 2024
@steveclay
Copy link
Collaborator

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

@steveclay
Copy link
Collaborator

The sso-otp value has been corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants