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
ddc0507f
Commit
ddc0507f
authored
Dec 12, 2012
by
Norman J. Harman Jr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Passing in module instead of just fail_json per upstream request.
parent
2e6999da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
library/subversion
+4
-4
No files found.
library/subversion
View file @
ddc0507f
...
...
@@ -70,8 +70,8 @@ import re
class
Subversion
(
object
):
def
__init__
(
self
,
fail_callback
,
dest
,
repo
,
revision
,
username
,
password
):
self
.
fail_callback
=
fail_callback
def
__init__
(
self
,
module
,
dest
,
repo
,
revision
,
username
,
password
):
self
.
module
=
module
self
.
dest
=
dest
self
.
repo
=
repo
self
.
revision
=
revision
...
...
@@ -89,7 +89,7 @@ class Subversion(object):
out
,
err
=
cmd
.
communicate
()
rc
=
cmd
.
returncode
if
rc
!=
0
:
self
.
fail_callback
(
msg
=
err
)
self
.
module
.
fail_json
(
msg
=
err
)
return
out
.
splitlines
()
def
checkout
(
self
):
...
...
@@ -146,7 +146,7 @@ def main():
username
=
module
.
params
[
'username'
]
password
=
module
.
params
[
'password'
]
svn
=
Subversion
(
module
.
fail_json
,
dest
,
repo
,
revision
,
username
,
password
)
svn
=
Subversion
(
module
,
dest
,
repo
,
revision
,
username
,
password
)
if
not
os
.
path
.
exists
(
dest
):
before
=
None
...
...
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