* Ensure KWArgs is a dict
* Print action string not values
This commit is contained in:
2Shirt 2019-05-10 16:38:31 -06:00
parent aa4356c08c
commit 6a1315a9f2
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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