Skip to content

Commit

Permalink
salt.modules.win_autoruns is now using __virtualname__
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Oct 17, 2013
1 parent e0b2c03 commit 8482dd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion salt/modules/win_autoruns.py
Expand Up @@ -16,14 +16,17 @@
'list_': 'list'
}

# Define the module's virtual name
__virtualname__ = 'autoruns'


def __virtual__():
'''
Only works on Windows systems
'''

if salt.utils.is_windows():
return 'autoruns'
return __virtualname__
return False


Expand Down

0 comments on commit 8482dd5

Please sign in to comment.