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
244b9235
Commit
244b9235
authored
Jul 15, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No longer need to calculate setup metadata location since we don't write
the setup file to disk.
parent
61d8e2e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
lib/ansible/runner/__init__.py
+0
-25
No files found.
lib/ansible/runner/__init__.py
View file @
244b9235
...
@@ -254,30 +254,6 @@ class Runner(object):
...
@@ -254,30 +254,6 @@ class Runner(object):
return
args
return
args
# *****************************************************
# *****************************************************
def
_add_setup_metadata
(
self
,
args
):
''' automatically determine where to store variables for the setup module '''
is_dict
=
False
if
type
(
args
)
==
dict
:
is_dict
=
True
# TODO: make a _metadata_path function
if
not
is_dict
:
if
args
.
find
(
"metadata="
)
==
-
1
:
if
self
.
remote_user
==
'root'
or
(
self
.
sudo
and
self
.
sudo_user
==
'root'
):
args
=
"
%
s metadata=/etc/ansible/setup"
%
args
else
:
args
=
"
%
s metadata=
%
s/setup"
%
(
args
,
C
.
DEFAULT_REMOTE_TMP
)
else
:
if
not
'metadata'
in
args
:
if
self
.
remote_user
==
'root'
or
(
self
.
sudo
and
self
.
sudo_user
==
'root'
):
args
[
'metadata'
]
=
'/etc/ansible/setup'
else
:
args
[
'metadata'
]
=
"
%
s/setup"
%
C
.
DEFAULT_REMOTE_TMP
return
args
# *****************************************************
def
_execute_module
(
self
,
conn
,
tmp
,
remote_module_path
,
args
,
def
_execute_module
(
self
,
conn
,
tmp
,
remote_module_path
,
args
,
async_jid
=
None
,
async_module
=
None
,
async_limit
=
None
):
async_jid
=
None
,
async_module
=
None
,
async_limit
=
None
):
...
@@ -348,7 +324,6 @@ class Runner(object):
...
@@ -348,7 +324,6 @@ class Runner(object):
if
not
args
:
if
not
args
:
args
=
{}
args
=
{}
args
=
self
.
_add_setup_vars
(
inject
,
args
)
args
=
self
.
_add_setup_vars
(
inject
,
args
)
args
=
self
.
_add_setup_metadata
(
args
)
if
type
(
args
)
==
dict
:
if
type
(
args
)
==
dict
:
args
=
utils
.
bigjson
(
args
)
args
=
utils
.
bigjson
(
args
)
...
...
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