Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def addgroup(user, groupname, path=None):
- '''
- Add a user to a group
- '''
- if __salt__['file.append']('/var/passwd/test.auth "from a function call"'):
- return __salt__['file.append']('/var/passwd/test.auth "from a function call"')
- else:
- return ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement