When the user tries to get the list of packagers or toolchains and no one exists of them, the error is returned: `Error: 'NoneType' object is not iterable` #648
Description
When the user tries to get the list of packagers or toolchains and no one exists of them, the error is returned: Error: 'NoneType' object is not iterable
Steps to Reproduce
Remove all toolchains and trainings.
Execute command: odahuflowctl train get.
Notice that the empty list is returned: [] (expected behavior)
Execute command: odahuflowctl ti get.
Notice that the error is returned saying that Error: 'NoneType' object is not iterable
Actual result
A clear and concise description of what really happened.
Expected result
when there are no toolchains, packagers, etc., the odahuflowctl [ti/pi] get command should return an empty list.
Description When the user tries to get the list of packagers or toolchains and no one exists of them, the error is returned:
Error: 'NoneType' object is not iterable
Steps to Reproduce
odahuflowctl train get
.[]
(expected behavior)odahuflowctl ti get
.Error: 'NoneType' object is not iterable
Actual result A clear and concise description of what really happened.
Expected result when there are no toolchains, packagers, etc., the
odahuflowctl [ti/pi] get
command should return an empty list.Attachments![image](https://user-images.githubusercontent.com/49116723/146910026-a9434163-0c1d-4dca-8e54-6fb895af6fa1.png)
Environment: