Skip to content

error in slcli summary #1198

@scottwn

Description

@scottwn

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions