Skip to content
This repository has been archived by the owner on Jan 13, 2020. It is now read-only.
/ accelpy Public archive

Commit

Permalink
1.0.0-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed Jul 23, 2019
1 parent 2aec9f8 commit c4fe31e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion accelpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
__version__ = '1.0.0-beta.3'
__version__ = '1.0.0-beta.4'
__copyright__ = "Copyright 2018 Accelize"
__licence__ = "Apache 2.0"

Expand Down
5 changes: 3 additions & 2 deletions accelpy/_ansible/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,16 @@ def _executable(cls):
site_packages = dirname(__path__[0])

# Set default value in case not found
cls._ANSIBLE_EXECUTABLE = 'ansible"'
cls._ANSIBLE_EXECUTABLE = 'ansible'

# Tries to find Ansible version installed as dependency
with scandir(site_packages) as entries:
for entry in entries:

# Find ansible package dist-info
if (not entry.name.startswith('ansible-') or
splitext(entry.name)[1] != '.dist-info'):
splitext(entry.name)[1] not in
('.dist-info', '.egg-info')):
continue

# Find ansible package files list
Expand Down

0 comments on commit c4fe31e

Please sign in to comment.