-
Notifications
You must be signed in to change notification settings - Fork 192
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
Unable to get VSI details when last TXN is "Software install is finished" #1622
Comments
I upgraded to v6.0.2 and got the SAME error ...
|
Can you provide the output of
https://sldn.softlayer.com/reference/datatypes/SoftLayer_Virtual_Guest/#lastTransaction is supposed to be a single entry, so I'm curious what is causing this behavior. Having that raw data would be helpful. |
|
the slcli list works ...
I only included the 2 that are giving me issues. |
Looks like the API is sending back an empty list for I think the solution here should be to get the util.lookup function to handle bad input a little better.
|
Unable to get VSI details.
➜ ~ slcli virtual detail 61354767
An unexpected error has occured:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/SoftLayer-5.9.8-py3.9.egg/SoftLayer/CLI/core.py", line 209, in main
cli.main(**kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/decorators.py", line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/SoftLayer-5.9.8-py3.9.egg/SoftLayer/CLI/virt/detail.py", line 72, in cli
last_transaction = "{} ({})".format(utils.lookup(result, 'lastTransaction', 'transactionGroup', 'name'),
File "/usr/local/lib/python3.9/site-packages/SoftLayer-5.9.8-py3.9.egg/SoftLayer/utils.py", line 35, in lookup
return lookup(dic.get(key, {}), keys[0], *keys[1:])
File "/usr/local/lib/python3.9/site-packages/SoftLayer-5.9.8-py3.9.egg/SoftLayer/utils.py", line 35, in lookup
return lookup(dic.get(key, {}), keys[0], *keys[1:])
AttributeError: 'list' object has no attribute 'get'
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
Version
Include the output of
slcli --version
➜ ~ slcli --version
Current: slcli (SoftLayer Command-line) v5.9.8
Latest: slcli (SoftLayer Command-line) v6.0.2
The text was updated successfully, but these errors were encountered: