mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
pacman.py: use os_family grain to assign as pkg virtual module
This is a more future-proof method, it'll keep us from continuing to update pacman.py each time we add another Arch derivative to the Arch os_family.
This commit is contained in:
parent
5d632dbfca
commit
b0069ad0d8
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ def __virtual__():
|
|||
'''
|
||||
Set the virtual pkg module if the os is Arch
|
||||
'''
|
||||
if __grains__['os'] in ('Arch', 'Arch ARM', 'Antergos', 'ManjaroLinux'):
|
||||
if __grains__['os_family'] == 'Arch':
|
||||
return __virtualname__
|
||||
return (False, 'The pacman module could not be loaded: unsupported OS family.')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue