Skip to content

Commit

Permalink
azure-cli.extensions-tool: add final newline when writing json
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Nov 2, 2024
1 parent 8259009 commit de7ae95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/by-name/az/azure-cli/extensions-generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -1105,4 +1105,4 @@
"hash": "sha256-pzc7LTdmxDs8rq/A7du0kkKXULYsePdndgubC0I2MgY=",
"description": "Microsoft Azure Command-Line Tools Workloads Extension"
}
}
}
1 change: 1 addition & 0 deletions pkgs/by-name/az/azure-cli/extensions-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def _write_extension_set(extensions_generated: Path, extensions: Set[Ext]) -> No
ls.sort(key=lambda e: e.pname)
with open(extensions_generated, "w") as f:
json.dump({ext.pname: asdict(ext) for ext in ls}, f, indent=2)
f.write("\n")


def _convert_hash_digest_from_hex_to_b64_sri(s: str) -> str:
Expand Down

0 comments on commit de7ae95

Please sign in to comment.