Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newline in script json dumps #3162

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading