mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #25078 from terminalmage/fix-mac-uid
Use smaller number for upper limit of mac_user's _first_avail_uid helper function
This commit is contained in:
commit
58d933cfa8
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ def _dscl(cmd, ctype='create'):
|
|||
|
||||
def _first_avail_uid():
|
||||
uids = set(x.pw_uid for x in pwd.getpwall())
|
||||
for idx in range(501, 2 ** 32):
|
||||
for idx in range(501, 2 ** 24):
|
||||
if idx not in uids:
|
||||
return idx
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue