Skip to content

Commit ffddfd3

Browse files
tulinkryVladimir Kotal
authored andcommitted
Flushing content to the file in projadm
fixes #2386
1 parent 7ac1f5d commit ffddfd3

File tree

1 file changed

+2
-0
lines changed
  • opengrok-tools/src/main/python/opengrok_tools

1 file changed

+2
-0
lines changed

opengrok-tools/src/main/python/opengrok_tools/projadm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def config_refresh(doit, logger, basedir, uri, configmerge, jar_file,
130130
logger.debug("Temporary file for current config: {}".format(fcur.name))
131131
if doit:
132132
fcur.write(bytearray(''.join(current_config), "UTF-8"))
133+
fcur.flush()
133134

134135
if not roconfig:
135136
logger.info('Refreshing configuration')
@@ -150,6 +151,7 @@ def config_refresh(doit, logger, basedir, uri, configmerge, jar_file,
150151
format(fmerged.name))
151152
if doit:
152153
fmerged.write(bytearray(''.join(merged_config), "UTF-8"))
154+
fmerged.flush()
153155
install_config(doit, logger, fmerged.name, main_config)
154156

155157

0 commit comments

Comments
 (0)