-
-
Save kylegato/961107006210995239b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _run_command(self, cmd, cwd=None, user=None, env=None): | |
result = self.salt['cmd.run_all'](cmd, cwd=cwd, runas=user, env=env) | |
if result['retcode'] > 0: | |
raise PackageException(result['stdout']) | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment