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
c6b8e162
Commit
c6b8e162
authored
Apr 20, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A better fix for slurp, expand path in the module.
parent
13ba3123
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lib/ansible/runner.py
+2
-1
library/slurp
+1
-1
No files found.
lib/ansible/runner.py
View file @
c6b8e162
...
...
@@ -471,7 +471,8 @@ class Runner(object):
if
self
.
remote_user
==
'root'
:
metadata
=
'/etc/ansible/setup'
else
:
metadata
=
"/home/
%
s/.ansible/setup"
%
self
.
remote_user
# path is expanded on remote side
metadata
=
"~/.ansible/setup"
# install the template module
slurp_module
=
self
.
_transfer_module
(
conn
,
tmp
,
'slurp'
)
...
...
library/slurp
View file @
c6b8e162
...
...
@@ -42,7 +42,7 @@ params = {}
for
x
in
items
:
(
k
,
v
)
=
x
.
split
(
"="
)
params
[
k
]
=
v
source
=
params
[
'src'
]
source
=
os
.
path
.
expanduser
(
params
[
'src'
])
# ==========================================
...
...
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