mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
salt.modules.pkgng
is now using __virtualname__
This commit is contained in:
parent
432717a05d
commit
082fa88598
@ -41,13 +41,16 @@ import salt.utils
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
# Define the module's virtual name
|
||||
__virtualname__ = 'pkg'
|
||||
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
Load as 'pkg' on FreeBSD 10 and greater
|
||||
'''
|
||||
if __grains__['os'] == 'FreeBSD' and float(__grains__['osrelease']) >= 10:
|
||||
return 'pkg'
|
||||
return __virtualname__
|
||||
return False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user