saltstack/salt-cloud — pull request #73 by techhat (2012-09-28 21:59:37+00:00)
Title: Do not use sudo if the user is already root

This wan't a problem until we started encountering distros (like FreeBSD) that didn't have sudo installed by default.

Also fixes a related issue with the ssh command not using the deploy_command that was passed in.