Skip to content

Commit aa9c4a8

Browse files
committed
cli: Fix logging merged config
Read from the beginning of the file instead of the end. Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
1 parent fef0083 commit aa9c4a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

netplan_cli/configmanager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def parse(self, extra_config=None):
8989
# Convoluted way to dump the parsed config to the logs...
9090
with tempfile.TemporaryFile() as tmp:
9191
self.np_state._dump_yaml(output_file=tmp)
92+
tmp.seek(0)
9293
logging.debug("Merged config:\n{}".format(tmp.read()))
9394

9495
return self.np_state

0 commit comments

Comments
 (0)