Skip to content

Commit

Permalink
test with configured uid
Browse files Browse the repository at this point in the history
  • Loading branch information
bodsch committed Sep 13, 2023
1 parent 5fa3ef3 commit 1e4b550
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/multi_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def __init__(self, user, module):
self.state = user.get("state")
self.system = user.get("system", False)
self.uid = user.get("uid", None)
self.non_unique = user.get("non_unique", None)
self.umask = user.get("umask", None)
self.update_password = user.get("update_password", 'always')
self.username = user.get("username")
Expand Down Expand Up @@ -300,7 +301,7 @@ def create_user(self):

if self.uid is not None:
args.append('-u')
args.append(self.uid)
args.append(str(self.uid))

if self.non_unique:
args.append('-o')
Expand Down
1 change: 1 addition & 0 deletions molecule/configured/group_vars/all/vars.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
users:
- username: foo-bar
uid: 2000
update_password: always
comment: Foo Bar
# password: foo-barbar
Expand Down

0 comments on commit 1e4b550

Please sign in to comment.