Null Ternary Value should be tied to value 'n'.
@@ -1862,12 +1862,15 @@ class EnterpriseRoleCommand(EnterpriseCommand):
elif enforcement_type == 'string':
pass
elif enforcement_type.startswith('ternary_'):
+ enforcement_value = enforcement_value.lower()
if enforcement_value in {'e', 'enforce'}:
enforcement_value = 'enforce'
elif enforcement_value in {'d', 'disable'}:
enforcement_value = 'disable'
+ elif enforcement_value in {'n', 'null'}:
+ enforcement_value = None
else:
- logging.warning('Enforcement %s expects either "enforce" or "disable"', key)
+ logging.warning('Enforcement %s expects either "[e]nforce", "[d]isable", or "[n]ull"', key)
continue
elif enforcement_type == 'two_factor_duration':
if enforcement_value == 'login':
