Skip to content

Commit

Permalink
Don't load on Windows systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
UtahDave committed Mar 26, 2014
1 parent 677555b commit 7af5f72
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions salt/modules/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
log = logging.getLogger(__name__)


def __virtual__():
'''
Only load on POSIX-like systems
'''
# Disable on Windows, a specific file module exists:
if salt.utils.is_windows():
return False
return 'mount'


def _list_mounts():
ret = {}
for line in __salt__['cmd.run_stdout']('mount -l').split('\n'):
Expand Down

0 comments on commit 7af5f72

Please sign in to comment.