odahu / odahu-flow

Apache License 2.0
12 stars 2 forks source link

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

Closed BPylypenko closed 2 years ago

BPylypenko commented 2 years ago

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

  1. Remove all toolchains and trainings.
  2. Execute command: odahuflowctl train get.
  3. Notice that the empty list is returned: [] (expected behavior)
  4. Execute command: odahuflowctl ti get.
  5. 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.

Attachments image

Environment: