ansible/test/runner/yamlcheck.py

20 lines
279 B
Python
Raw Normal View History

2019-06-05 07:08:23 +02:00
#!/usr/bin/env python
"""Show python and pip versions."""
import json
try:
import yaml
except ImportError:
yaml = None
try:
from yaml import CLoader
except ImportError:
CLoader = None
print(json.dumps(dict(
yaml=bool(yaml),
cloader=bool(CLoader),
)))