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
5a3032a9
Commit
5a3032a9
authored
Nov 12, 2013
by
James Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #4884 Do not prematurely exit from file module if src not defined
parent
f31cb7c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
library/files/file
+2
-6
No files found.
library/files/file
View file @
5a3032a9
...
...
@@ -186,12 +186,8 @@ def main():
prev_state
=
'file'
if
prev_state
is
not
None
and
state
is
None
:
if
not
params
.
get
(
'src'
,
None
):
# idempotent exit if state is not specified
module
.
exit_json
(
path
=
path
,
changed
=
False
)
else
:
# src is defined, need to process other operations
state
=
prev_state
# set state to current type of file
state
=
prev_state
elif
state
is
None
:
# set default state to file
state
=
'file'
...
...
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