mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
add python version info to --version (#22089)
* add python info to ansible --version * Add unit tests for cli.CLI.version
This commit is contained in:
parent
d12c93ef2b
commit
694c57de2e
2 changed files with 42 additions and 0 deletions
|
@ -476,6 +476,7 @@ class CLI(with_metaclass(ABCMeta, object)):
|
|||
else:
|
||||
cpath = C.DEFAULT_MODULE_PATH
|
||||
result = result + "\n configured module search path = %s" % cpath
|
||||
result = result + "\n python version = %s" % ''.join(sys.version.splitlines())
|
||||
return result
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue