mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
16 lines
421 B
Python
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")
|