From 6a1315a9f2b796f31951cba3fb66b155456bb02d Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Fri, 10 May 2019 16:38:31 -0600 Subject: [PATCH] Bugfixes * Ensure KWArgs is a dict * Print action string not values --- .bin/Scripts/system_setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.bin/Scripts/system_setup.py b/.bin/Scripts/system_setup.py index d8694f24..dda6c32b 100644 --- a/.bin/Scripts/system_setup.py +++ b/.bin/Scripts/system_setup.py @@ -167,6 +167,10 @@ def get_actions(setup_mode, answers): for _sub_key in SETUP_ACTION_KEYS: _action[_sub_key] = _val.get(_sub_key, None) + # Fix KWArgs + if _action.get('KWArgs', {}) is None: + _action['KWArgs'] = {} + # Handle "special" actions if _key == 'KIT_NAME_FULL': _key = KIT_NAME_FULL @@ -290,7 +294,7 @@ def main(): # Print info lines if values.get('Info', False): - print_info(values['Info']) + print_info(action) continue # Print skipped actions