Skip to content

Hardware/Virtual server detail will break if they are in reclaim status #1159

@yhuanghamu

Description

@yhuanghamu
slcli vm detail XXXXX
also slcli hw detail XXX
    return callback(*args, **kwargs)
  File "/Users/***/venv/src/softlayer/SoftLayer/CLI/virt/detail.py", line 95, in cli
    bandwidth = vsi.get_bandwidth_allocation(vs_id)
  File "/Users/***/venv/src/softlayer/SoftLayer/managers/vs.py", line 1070, in get_bandwidth_allocation
    return {'allotment': allotment['allocation'], 'useage': useage}
TypeError: string indices must be integers, not 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

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

Actual Behavior

Environment Information

Operating System: Mac OSX 10.14
softlayer-python version (slcli --version):
v 5.7.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions