From 9dbd90a3e621f441c8555452364a56f2a4afd9ea Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Mon, 10 Dec 2012 17:19:47 -0700 Subject: [PATCH] Fix issue where virtual modules with the same name as the module Were not being loaded --- salt/loader.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/salt/loader.py b/salt/loader.py index b6a3076b50..bfa2843aba 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -579,9 +579,7 @@ class Loader(object): if hasattr(mod, '__virtual__'): if callable(mod.__virtual__): virtual = mod.__virtual__() - if virtual and module_name != virtual: - log.debug(('Loaded {0} as virtual ' - '{1}').format(module_name, virtual)) + if virtual: # update the module name with the new name module_name = virtual else: