From 660a41f23e09604d7d05d1394c9223aac1e84d44 Mon Sep 17 00:00:00 2001 From: Bernard `Guyzmo` Pratz Date: Thu, 14 Jan 2016 21:44:12 +0000 Subject: [PATCH] fixed the extraneous environment Signed-off-by: Bernard `Guyzmo` Pratz --- management/backup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/management/backup.py b/management/backup.py index e8aca327..3c6f26bf 100755 --- a/management/backup.py +++ b/management/backup.py @@ -352,7 +352,6 @@ def list_target_files(config): return [(fn, os.path.getsize(os.path.join(p.path, fn))) for fn in os.listdir(p.path)] elif p.scheme == "rsync": - env = load_environment() rsync_fn_size_re = re.compile(r'.* ([^ ]*) [^ ]* [^ ]* (.*)') rsync_target = '{host}:{path}' @@ -369,7 +368,7 @@ def list_target_files(config): path=target_path) ] - code, listing = shell('check_output', rsync_command, get_env(env), trap=True) + code, listing = shell('check_output', rsync_command, trap=True) if code == 0: for l in listing.split('\n'): match = rsync_fn_size_re.match(l)