saltstack/salt — pull request #13162 by terminalmage (2014-06-02 06:13:59+00:00)
Title: Cleanup for #13160

This commit makes the changes from #13160 conform to the Salt way by
kreturning booleans for enable/disable. In addition, it makes the
following changes:

1. Adds versionadded directives

2. Fixes leaked file handles by using with statements (and
salt.utils.fopen).

3. Raises a CommandExecutionError in ares where the failure of a
function reaches an error case.