diff --git a/salt/modules/mac_power.py b/salt/modules/mac_power.py index f76b16847a..96d3f22b1e 100644 --- a/salt/modules/mac_power.py +++ b/salt/modules/mac_power.py @@ -132,8 +132,10 @@ def _validate_enabled(enabled): 'String values must be \'on\' or \'off\'.\n' \ 'Passed: {0}'.format(enabled) raise SaltInvocationError(msg) - else: - return 'on' if bool(enabled) else 'off' + + return enabled.lower() + + return 'on' if bool(enabled) else 'off' def get_sleep():