* Update paths to match relocated files. * Update ansible-test symlink paths. * Update path classification. * Update MANIFEST.in * Update sanity test context paths. * Update sanity ignores. * Update shebang sanity test. * Update configure-remoting-ps1 sanity test. * Update BOTMETA.yml to reflect new paths. * Update paths in collection loader comments. * Update Makefile for ansible-test. * Update docs. * Add changelog fragment.
25 lines
494 B
Python
Executable File
25 lines
494 B
Python
Executable File
#!/usr/bin/env python
|
|
"""Show openssl version."""
|
|
from __future__ import (absolute_import, division, print_function)
|
|
__metaclass__ = type
|
|
|
|
import json
|
|
|
|
# noinspection PyBroadException
|
|
try:
|
|
from ssl import OPENSSL_VERSION_INFO
|
|
VERSION = list(OPENSSL_VERSION_INFO[:3])
|
|
except Exception: # pylint: disable=broad-except
|
|
VERSION = None
|
|
|
|
|
|
def main():
|
|
"""Main program entry point."""
|
|
print(json.dumps(dict(
|
|
version=VERSION,
|
|
)))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|