From 474d1bbbbf0600752a2690adec71ff2b8821ccd6 Mon Sep 17 00:00:00 2001 From: Dave Neeley Date: Wed, 2 Dec 2015 18:29:26 -0700 Subject: [PATCH] Add error message for non-windows systems. --- salt/modules/win_repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/win_repo.py b/salt/modules/win_repo.py index ef1634da12..e56fa3f419 100644 --- a/salt/modules/win_repo.py +++ b/salt/modules/win_repo.py @@ -41,7 +41,7 @@ def __virtual__(): ''' if salt.utils.is_windows(): return __virtualname__ - return False + return (False, 'This module only works on Windows.') def genrepo():