From ebf476d390393fdfadeacf64f06b9c9e25a4c06a Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 14 Aug 2013 14:46:22 -0500 Subject: [PATCH] Obligatory automatic vim whitespace cleanup commit --- teuthology/misc.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/teuthology/misc.py b/teuthology/misc.py index 958cb64ea5..1aaa61c42d 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -317,8 +317,8 @@ def sudo_write_file(remote, path, data, perms=None): def move_file(remote, from_path, to_path, sudo=False): - # need to stat the file first, to make sure we - # maintain the same permissions + # need to stat the file first, to make sure we + # maintain the same permissions args = [] if sudo: args.append('sudo') @@ -397,8 +397,8 @@ def remove_lines_from_file(remote, path, line_is_valid_test, string_to_test_for) else: log.info('removing line: {bad_line}'.format(bad_line=line)) - # get a temp file path on the remote host to write to, - # we don't want to blow away the remote file and then have the + # get a temp file path on the remote host to write to, + # we don't want to blow away the remote file and then have the # network drop out temp_file_path = remote_mktemp(remote) @@ -407,14 +407,14 @@ def remove_lines_from_file(remote, path, line_is_valid_test, string_to_test_for) # then do a 'mv' to the actual file location move_file(remote, temp_file_path, path) - + def append_lines_to_file(remote, path, lines, sudo=False): temp_file_path = remote_mktemp(remote) - + data = get_file(remote, path, sudo) # add the additional data and write it back out, using a temp file - # in case of connectivity of loss, and then mv it to the + # in case of connectivity of loss, and then mv it to the # actual desired location data += lines temp_file_path -- 2.39.5