kayobe/tools/feature-flags.py
Pierre Riteau 7d4d48b1c4 Update shebang for Python 3 script
The feature-flags.py script uses pathlib which is only supported in
Python 3. Update shebang to ensure it is run with the correct
interpreter.

Change-Id: I69ea0c90f68909399709626bddfc418e9df31acc
2020-09-16 15:54:13 +02:00

17 lines
404 B
Python
Executable File

#!/usr/bin/env python3
# Usage: run this script and copy the output to etc/kayobe/kolla.yml
import os
import pathlib
import yaml
script_dir = pathlib.Path(__file__).parent.absolute()
path = os.path.join(script_dir, "../ansible/roles/kolla-ansible/vars/main.yml")
with open(path) as f:
vars = yaml.safe_load(f)
for key in vars["kolla_feature_flags"]:
print("#kolla_enable_%s:" % key)