mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Update pw_user.py
adding pw_user module support for DragonFly BSD
This commit is contained in:
parent
9dfcf78c96
commit
e798c06fd8
@ -52,9 +52,9 @@ __virtualname__ = 'user'
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
Set the user module if the kernel is FreeBSD
|
||||
Set the user module if the kernel is FreeBSD or DragonFly
|
||||
'''
|
||||
if HAS_PWD and __grains__['kernel'] == 'FreeBSD':
|
||||
if HAS_PWD and __grains__['kernel'] in ('FreeBSD', 'DragonFly'):
|
||||
return __virtualname__
|
||||
return (False, 'The pw_user execution module cannot be loaded: the pwd python module is not available or the system is not FreeBSD.')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user