Skip to content

Commit

Permalink
newline in script json dumps (#3162)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed May 2, 2024
1 parent f54f66b commit 8e8423b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/update_schemas_from_aws_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def write_output(resource, filename, obj):

with open(filename, "w+", encoding="utf-8") as f:
json.dump(obj, f, indent=1, sort_keys=True, separators=(",", ": "))
f.write("\n")


def write_db_cluster(results):
Expand Down
1 change: 1 addition & 0 deletions scripts/update_serverless_aws_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def main():
sort_keys=True,
separators=(",", ": "),
)
f.write("\n")


if __name__ == "__main__":
Expand Down
3 changes: 3 additions & 0 deletions scripts/update_specs_from_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,15 @@ def get_rds_pricing():
)
with open(filename, "w+", encoding="utf-8") as f:
json.dump(specs, f, indent=1, sort_keys=True, separators=(",", ": "))
f.write("\n")

filename = (
"src/cfnlint/data/schemas/extensions/"
"aws_rds_dbcluster/dbclusterinstanceclass_enum.json"
)
with open(filename, "w+", encoding="utf-8") as f:
json.dump(cluster_specs, f, indent=1, sort_keys=True, separators=(",", ": "))
f.write("\n")


def get_results(service, product_families, default=None):
Expand Down Expand Up @@ -374,6 +376,7 @@ def write_output(resource, filename, obj):

with open(filename, "w+", encoding="utf-8") as f:
json.dump(output, f, indent=1, sort_keys=True, separators=(",", ": "))
f.write("\n")


def main():
Expand Down

0 comments on commit 8e8423b

Please sign in to comment.