Fixup for opening config dumps

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-10-11 08:55:34 +02:00
parent 97d52d03c8
commit a3b90f7474
1 changed files with 1 additions and 1 deletions

View File

@ -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: