From 44551ea9eeaf91aff80b54e7004f966e4ee241ac Mon Sep 17 00:00:00 2001 From: William Wernert Date: Thu, 29 Jul 2021 13:31:48 -0400 Subject: [PATCH] Fix so-learn list --- salt/common/tools/sbin/so-learn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/common/tools/sbin/so-learn b/salt/common/tools/sbin/so-learn index be5e6ee02..9a307712b 100644 --- a/salt/common/tools/sbin/so-learn +++ b/salt/common/tools/sbin/so-learn @@ -175,8 +175,8 @@ def disable_modules(args): def list_modules(*_): print('Available ML modules:') - for module in learn_modules: - print(f' - { module["name"] } : {module["description"]}') + for module, details in get_learn_modules().items(): + print(f' - { module } : {details["description"]}') return 0