Update pw_user.py

adding pw_user module support for DragonFly BSD
This commit is contained in:
Sergey Paramonov 2015-12-24 13:01:09 -05:00
parent 9dfcf78c96
commit e798c06fd8

View File

@ -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.')