Fixup for opening config dumps
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
97d52d03c8
commit
a3b90f7474
@ -269,7 +269,7 @@ def run_compose(compose, create_latest_link=True, latest_link_status=None):
|
||||
config_dump = compose.paths.log.log_file("global", "config-copy_%s_%s"
|
||||
% (os.path.basename(config_file), date_str))
|
||||
with open(config_dump, "w") as dest:
|
||||
with open(config_file, 'r').read() as src:
|
||||
with open(config_file, 'r') as src:
|
||||
dest.write(src.read())
|
||||
config_dump_full = compose.paths.log.log_file("global", "config-dump_%s" % date_str)
|
||||
with open(config_dump_full, "w") as f:
|
||||
|
Loading…
Reference in New Issue
Block a user