Add special handling of Ninite action

This commit is contained in:
2Shirt 2019-05-10 15:58:05 -06:00
parent a53050b78d
commit 97c5fc4c4d
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -166,6 +166,13 @@ def get_actions(setup_mode, answers):
# Set other keys
for _sub_key in SETUP_ACTION_KEYS:
_action[_sub_key] = _val.get(_sub_key, None)
# Handle "special" actions
if _key == 'Ninite bundle':
_action['KWArgs'] = {kw.lower(): kv for kw, kv in answers.items()}
_action['KWArgs'].pop('eset', None)
# Add to dict
actions[_key] = _action
return actions