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
c31831f0
Commit
c31831f0
authored
Feb 10, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move from using inspect to __file__ in order to find the path to the
module snippets
parent
01a6081b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
+1
-5
v2/ansible/executor/module_common.py
+1
-5
No files found.
v2/ansible/executor/module_common.py
View file @
c31831f0
...
...
@@ -22,7 +22,6 @@ __metaclass__ = type
# from python and deps
from
cStringIO
import
StringIO
import
inspect
import
json
import
os
import
shlex
...
...
@@ -43,11 +42,8 @@ REPLACER_VERSION = "\"<<ANSIBLE_VERSION>>\""
# specify an encoding for the python source file
ENCODING_STRING
=
'# -*- coding: utf-8 -*-'
# TODO: Is there a reason we don't use __file__ here?
# Will this fail if ansible is run from an egg/wheel? Do we care?
_THIS_FILE
=
inspect
.
getfile
(
inspect
.
currentframe
())
# we've moved the module_common relative to the snippets, so fix the path
_SNIPPET_PATH
=
os
.
path
.
join
(
os
.
path
.
dirname
(
this_file
),
'..'
,
'module_utils'
)
_SNIPPET_PATH
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'module_utils'
)
# ******************************************************************************
...
...
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