Skip to content

Commit

Permalink
Strip newline at the end of the yaml document (#77)
Browse files Browse the repository at this point in the history
Strip newline at the end of the yaml document

Issue #45
  • Loading branch information
allenporter authored Feb 24, 2023
1 parent 5242bab commit 4543d23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ definition is simple. Secrets are ignored as the content is not needed to valida
cluster is creating valid objects.

This library at first glance is little more than shell scripts running commands, but is easier
to test, maintain, and evolve.
to test, maintain, and evolve. This does not support all features of flux, but should
be close enough for home use.

See [documentation](https://allenporter.github.io/flux-local/) for full quickstart and API reference.
See the [github project](https://github.com/allenporter/flux-local).
Expand Down
2 changes: 1 addition & 1 deletion flux_local/tool/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ def format(self, data: list[dict[str, Any]]) -> Generator[str, None, None]:

def print(self, data: list[dict[str, Any]]) -> None:
"""Format the data objects."""
print(yaml.dump_all(data, sort_keys=False, explicit_start=True))
print(yaml.dump_all(data, sort_keys=False, explicit_start=True), end="")
2 changes: 0 additions & 2 deletions tests/tool/testdata/get_cluster_yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,3 @@ stdout: |+
name: metallb
repo_name: bitnami
repo_namespace: flux-system
...

0 comments on commit 4543d23

Please sign in to comment.