mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Update chromepolicy.py (#1610)
split of an empty string returns [''], the API wants []
This commit is contained in:
@@ -408,7 +408,7 @@ def update_policy():
|
|||||||
f'{expected_enums}, got {value}'
|
f'{expected_enums}, got {value}'
|
||||||
controlflow.system_error_exit(8, msg)
|
controlflow.system_error_exit(8, msg)
|
||||||
elif vtype in ['TYPE_LIST']:
|
elif vtype in ['TYPE_LIST']:
|
||||||
value = value.split(',')
|
value = value.split(',') if value else []
|
||||||
if myarg == 'chrome.users.chromebrowserupdates' and \
|
if myarg == 'chrome.users.chromebrowserupdates' and \
|
||||||
cased_field == 'targetVersionPrefixSetting':
|
cased_field == 'targetVersionPrefixSetting':
|
||||||
mg = re.compile(r'^([a-z]+)-(\d+)$').match(value)
|
mg = re.compile(r'^([a-z]+)-(\d+)$').match(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user