Fix schedule_enabled

This commit is contained in:
twangboy 2016-03-18 13:58:34 -06:00
parent 12668fe447
commit 38766a00af

View File

@ -223,7 +223,7 @@ def schedule_enabled():
except CommandExecutionError as exc:
raise CommandExecutionError(exc)
enabled = salt.utils.mac_utils.parse_return(ret)
enabled = out.split()[-1]
return salt.utils.mac_utils.validate_enabled(enabled) == 'on'