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
4792021f
Commit
4792021f
authored
Apr 02, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix syntax error in user patch
parent
e5d5b072
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
library/file
+2
-2
test/TestPlayBook.py
+1
-1
No files found.
library/file
View file @
4792021f
...
...
@@ -97,10 +97,10 @@ secontext = params.get('secontext', None)
if
state
not
in
[
'file'
,
'directory'
,
'link'
,
'absent'
]:
fail_json
(
msg
=
'invalid state:
%
s'
%
state
)
if
state
=
'link'
and
(
src
is
None
or
dest
is
None
):
if
state
=
=
'link'
and
(
src
is
None
or
dest
is
None
):
fail_json
(
msg
=
'src and dest are required for "link" state'
)
elif
path
is
None
:
fail_json
(
msg
=
'path is required
for "
%
s" state'
%
state
)
fail_json
(
msg
=
'path is required
'
)
changed
=
False
...
...
test/TestPlayBook.py
View file @
4792021f
...
...
@@ -43,7 +43,7 @@ class TestCallbacks(object):
EVENTS
.
append
([
'import'
,
[
host
,
filename
]])
def
on_error
(
self
,
host
,
msg
):
EVENTS
.
append
([
'stderr'
,
[
host
,
msg
])
EVENTS
.
append
([
'stderr'
,
[
host
,
msg
]
]
)
def
on_not_import_for_host
(
self
,
host
,
missing_filename
):
pass
...
...
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