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

SF CLI output defaults to the pickle format #36

Open
scaleoutsean opened this issue Jan 1, 2022 · 4 comments
Open

SF CLI output defaults to the pickle format #36

scaleoutsean opened this issue Jan 1, 2022 · 4 comments

Comments

@scaleoutsean
Copy link
Contributor

scaleoutsean commented Jan 1, 2022

As subject. How to repro:

$ sfcli -m 192.168.1.34 -u admin -p admin volume list --limit 1

Config:

  • solidfire-cli 1.7.0.154
  • solidfire-sdk-python 12.3.0.203
  • Python 3.8.10
  • Ubuntu 20.04
@arjun960
Copy link

arjun960 commented Jan 6, 2022

@scaleoutsean yes, SF CLI output defaults to pickle format during installation of the cli, Please refer to Page No. 8 of the CLI User Guide ( https://github.com/solidfire/solidfire-cli/blob/master/NetAppElementCLIToolsUserGuide1_7.pdf ).

To display the output of any cli command in JSON format we can pass -j or --json parameter along with other parameters of sfcli command.

@scaleoutsean
Copy link
Contributor Author

Okay, I didn't read the PDF but I've read the README.md where it says tree format is the default and further below it says the pickle format requires -k.

@arjun960
Copy link

arjun960 commented Jan 7, 2022

Yeah, you are right!! missed it completely, actually we missed to update the README.md file in the last release. We will update it soon.

Please refer to the User Guide for guidance related to sfcli.

@scaleoutsean
Copy link
Contributor Author

Yeah the tree used to be the default for a while. IIRC maybe online help isn't up to date (I'm away from my PC now), as I don't recall seeing the switch for the tree format in online help.

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