From 7af5f72788b2f328ea2bb87a305a4443d48d8bf7 Mon Sep 17 00:00:00 2001 From: David Boucha Date: Wed, 26 Mar 2014 15:34:16 -0600 Subject: [PATCH] Don't load on Windows systems. Fixes #11555 --- salt/modules/mount.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/salt/modules/mount.py b/salt/modules/mount.py index 4dd38784dd87..2dba026e1233 100644 --- a/salt/modules/mount.py +++ b/salt/modules/mount.py @@ -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'):