From 97c5fc4c4d12a012d95a23ca46572d54d55ce31d Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Fri, 10 May 2019 15:58:05 -0600 Subject: [PATCH] Add special handling of Ninite action --- .bin/Scripts/system_setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bin/Scripts/system_setup.py b/.bin/Scripts/system_setup.py index 4a8f8323..bb7fb4d1 100644 --- a/.bin/Scripts/system_setup.py +++ b/.bin/Scripts/system_setup.py @@ -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