Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
922a71fc
Commit
922a71fc
authored
Jul 08, 2013
by
Casper Langemeijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only append non_unique parameter if a uid is provided as well
parent
b2d881a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
library/system/user
+20
-20
No files found.
library/system/user
View file @
922a71fc
...
...
@@ -270,8 +270,8 @@ class User(object):
cmd
.
append
(
'-u'
)
cmd
.
append
(
self
.
uid
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
group
is
not
None
:
if
not
self
.
group_exists
(
self
.
group
):
...
...
@@ -320,8 +320,8 @@ class User(object):
cmd
.
append
(
'-u'
)
cmd
.
append
(
self
.
uid
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
group
is
not
None
:
if
not
self
.
group_exists
(
self
.
group
):
...
...
@@ -578,8 +578,8 @@ class FreeBsdUser(User):
cmd
.
append
(
'-u'
)
cmd
.
append
(
self
.
uid
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
comment
is
not
None
:
cmd
.
append
(
'-c'
)
...
...
@@ -643,8 +643,8 @@ class FreeBsdUser(User):
cmd
.
append
(
'-u'
)
cmd
.
append
(
self
.
uid
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
comment
is
not
None
and
info
[
4
]
!=
self
.
comment
:
cmd
.
append
(
'-c'
)
...
...
@@ -739,8 +739,8 @@ class OpenBSDUser(User):
cmd
.
append
(
'-u'
)
cmd
.
append
(
self
.
uid
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
group
is
not
None
:
if
not
self
.
group_exists
(
self
.
group
):
...
...
@@ -794,8 +794,8 @@ class OpenBSDUser(User):
cmd
.
append
(
'-u'
)
cmd
.
append
(
self
.
uid
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
group
is
not
None
:
if
not
self
.
group_exists
(
self
.
group
):
...
...
@@ -889,8 +889,8 @@ class NetBSDUser(User):
cmd
.
append
(
'-u'
)
cmd
.
append
(
self
.
uid
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
group
is
not
None
:
if
not
self
.
group_exists
(
self
.
group
):
...
...
@@ -946,8 +946,8 @@ class NetBSDUser(User):
cmd
.
append
(
'-u'
)
cmd
.
append
(
self
.
uid
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
group
is
not
None
:
if
not
self
.
group_exists
(
self
.
group
):
...
...
@@ -1049,8 +1049,8 @@ class SunOS(User):
cmd
.
append
(
'-u'
)
cmd
.
append
(
self
.
uid
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
group
is
not
None
:
if
not
self
.
group_exists
(
self
.
group
):
...
...
@@ -1111,8 +1111,8 @@ class SunOS(User):
cmd
.
append
(
'-u'
)
cmd
.
append
(
self
.
uid
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
non_unique
:
cmd
.
append
(
'-o'
)
if
self
.
group
is
not
None
:
if
not
self
.
group_exists
(
self
.
group
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment