Skip to content

Commit

Permalink
Show 'ansible' python module paths in --version (ansible#22264)
Browse files Browse the repository at this point in the history
* Show 'ansible' python module paths in --version
  • Loading branch information
alikins authored Apr 3, 2017
1 parent b9a4806 commit dbc0c01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ansible/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import subprocess
from abc import ABCMeta, abstractmethod

import ansible
from ansible.release import __version__
from ansible import constants as C
from ansible.errors import AnsibleError, AnsibleOptionsError
Expand Down Expand Up @@ -483,6 +484,7 @@ def version(prog):
else:
cpath = C.DEFAULT_MODULE_PATH
result = result + "\n configured module search path = %s" % cpath
result = result + "\n ansible python module location = %s" % ':'.join(ansible.__path__)
result = result + "\n python version = %s" % ''.join(sys.version.splitlines())
return result

Expand Down

0 comments on commit dbc0c01

Please sign in to comment.