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
0747d41e
Commit
0747d41e
authored
Aug 19, 2013
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up some typos in the xattr module
parent
5e4f9657
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
library/files/xattr
+3
-3
No files found.
library/files/xattr
View file @
0747d41e
...
...
@@ -69,7 +69,7 @@ EXAMPLES = '''
- xattr: path=/etc/foo.conf key=user.foo value=bar
# Removes the key 'foo'
- xattr: name=/etc/foo.conf
name=user.foo state=remove
- xattr: name=/etc/foo.conf
key=user.foo state=absent
'''
import
operator
...
...
@@ -97,7 +97,7 @@ def get_xattr(module,path,key,follow):
cmd
.
append
(
'-n
%
s'
%
key
)
cmd
.
append
(
path
)
return
_run_xattr
(
module
,
cmd
)
return
_run_xattr
(
module
,
cmd
,
False
)
def
set_xattr
(
module
,
path
,
key
,
value
,
follow
):
...
...
@@ -142,7 +142,7 @@ def _run_xattr(module,cmd,check_rc=True):
def
main
():
module
=
AnsibleModule
(
argument_spec
=
dict
(
name
=
dict
(
required
=
True
,
aliases
=
[
'pa
ht
'
]),
name
=
dict
(
required
=
True
,
aliases
=
[
'pa
th
'
]),
key
=
dict
(
required
=
False
,
default
=
None
),
value
=
dict
(
required
=
False
,
default
=
None
),
state
=
dict
(
required
=
False
,
default
=
'read'
,
choices
=
[
'read'
,
'present'
,
'all'
,
'keys'
,
'absent'
],
type
=
'str'
),
...
...
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