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
7286beb1
Commit
7286beb1
authored
Mar 16, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6515 from lotia/fix-acl-doc-and-error
Fix acl doc and error
parents
eef5a8a8
4a006a78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
library/files/acl
+3
-3
No files found.
library/files/acl
View file @
7286beb1
...
...
@@ -95,7 +95,7 @@ EXAMPLES = '''
- acl: name=/etc/foo.d entity=joe etype=user permissions=rw default=yes state=present
# Same as previous but using entry shorthand
- acl: name=/etc/foo.d entr
t
y="default:user:joe:rw-" state=present
- acl: name=/etc/foo.d entry="default:user:joe:rw-" state=present
# Obtain the acl for a specific file
- acl: name=/etc/foo.conf
...
...
@@ -218,10 +218,10 @@ def main():
if
state
in
[
'present'
,
'absent'
]:
if
not
entry
and
not
etype
:
module
.
fail_json
(
msg
=
"
%
s requ
ries to have ither either etype and permissions or entry to
be set"
%
state
)
module
.
fail_json
(
msg
=
"
%
s requ
ires either etype and permissions or just entry
be set"
%
state
)
if
entry
:
if
etype
or
entity
or
permissions
:
if
etype
or
entity
or
permissions
:
module
.
fail_json
(
msg
=
"entry and another incompatible field (entity, etype or permissions) are also set"
)
if
entry
.
count
(
":"
)
not
in
[
2
,
3
]:
module
.
fail_json
(
msg
=
"Invalid entry: '
%
s', it requires 3 or 4 sections divided by ':'"
%
entry
)
...
...
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