Thanks to visit codestin.com
Credit goes to github.com

Skip to content

error in slcli summary #1198

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

Closed
scottwn opened this issue Dec 12, 2019 · 0 comments · Fixed by #1206
Closed

error in slcli summary #1198

scottwn opened this issue Dec 12, 2019 · 0 comments · Fixed by #1206
Assignees
Labels

Comments

@scottwn
Copy link

scottwn commented Dec 12, 2019

Please triple-check to make sure that you have properly masked out user credentials like usernames, passwords and API keys before submitting your issue

Expected Behavior

slcli summary should show an account summary

Actual Behavior

An unexpected error has occured:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/SoftLayer/CLI/core.py", line 182, in main
    cli.main(**kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/SoftLayer/CLI/summary.py", line 44, in cli
    env.fout(table)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/SoftLayer/CLI/environment.py", line 56, in fout
    self.out(self.fmt(output), newline=newline)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/SoftLayer/CLI/environment.py", line 51, in fmt
    return formatting.format_output(output, fmt=self.format)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/SoftLayer/CLI/formatting.py", line 43, in format_output
    return str(format_no_tty(data))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/prettytable/prettytable.py", line 212, in __str__
    return self.__unicode__()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/prettytable/prettytable.py", line 218, in __unicode__
    return self.get_string()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/prettytable/prettytable.py", line 1140, in get_string
    rows = self._get_rows(options)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/prettytable/prettytable.py", line 1083, in _get_rows
    rows.sort(reverse=options["reversesort"], key=options["sort_key"])
TypeError: '<' not supported between instances of 'NoneType' and 'str'

Feel free to report this error as it is likely a bug:
    https://github.com/softlayer/softlayer-python/issues
The following snippet should be able to reproduce the error

Environment Information

Operating System: macOS 10.14.6
softlayer-python version (slcli --version): 5.8.3

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