mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user