1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/config-tool/utils/scripts/get_attributes.py
2023-07-31 17:32:14 +02:00

16 lines
421 B
Python

import json
with open("/home/jonathan/Desktop/config-tool/pkg/lib/testdata/quay-config-schema.json") as infile:
config = json.load(infile)
attributes = []
for prop_name in config["properties"].keys():
attributes.append(prop_name)
with open("/home/jonathan/Desktop/config-tool/attributes.txt", "w") as outfile:
for prop_name in attributes:
outfile.write(prop_name + "\n")