]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
misc: optimize append_lines_to_file() to reuse remote.write_file
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Thu, 16 Jul 2020 17:35:11 +0000 (19:35 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Thu, 3 Sep 2020 21:43:48 +0000 (23:43 +0200)
commit243ff3bbf218102b24ed992e3931bf8c76cdaadd
tree708f81fa41e4ea2a0582f79565976ab16d159d63
parent45aba9cf8d72fd30ca607200694c638cfd240fd8
misc: optimize append_lines_to_file() to reuse remote.write_file

The misc.append_lines_to_file method has been using get
remote file to temporary file and then write back to
remote host.

The orchestra.remote.write_file method has 'append' parameter
when using which there is no data downloaded from remote host.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
teuthology/misc.py