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
fbadcfd4
Commit
fbadcfd4
authored
Dec 16, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for not all platforms having optional libraries at the proper versions.
parent
27d2539f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
bin/ansible
+11
-0
bin/ansible-playbook
+9
-1
bin/ansible-vault
+9
-1
No files found.
bin/ansible
View file @
fbadcfd4
...
...
@@ -19,6 +19,17 @@
########################################################
__requires__
=
[
'ansible'
]
try
:
import
pkg_resources
except
Exception
:
# Use pkg_resources to find the correct versions of libraries and set
# sys.path appropriately when there are multiversion installs. But we
# have code that better expresses the errors in the places where the code
# is actually used (the deps are optional for many code paths) so we don't
# want to fail here.
pass
import
os
import
sys
...
...
bin/ansible-playbook
View file @
fbadcfd4
...
...
@@ -19,7 +19,15 @@
#######################################################
__requires__
=
[
'ansible'
]
import
pkg_resources
try
:
import
pkg_resources
except
Exception
:
# Use pkg_resources to find the correct versions of libraries and set
# sys.path appropriately when there are multiversion installs. But we
# have code that better expresses the errors in the places where the code
# is actually used (the deps are optional for many code paths) so we don't
# want to fail here.
pass
import
sys
import
os
...
...
bin/ansible-vault
View file @
fbadcfd4
...
...
@@ -19,7 +19,15 @@
# http://docs.ansible.com/playbooks_vault.html for more details.
__requires__
=
[
'ansible'
]
import
pkg_resources
try
:
import
pkg_resources
except
Exception
:
# Use pkg_resources to find the correct versions of libraries and set
# sys.path appropriately when there are multiversion installs. But we
# have code that better expresses the errors in the places where the code
# is actually used (the deps are optional for many code paths) so we don't
# want to fail here.
pass
import
os
import
sys
...
...
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