From 6fcd18d028f5d98f3992568f03224eb9b5f0cde2 Mon Sep 17 00:00:00 2001 From: Nicolas Wavrant <nicolas.wavrant@nexedi.com> Date: Tue, 30 Aug 2016 17:18:15 +0200 Subject: [PATCH] pbs: generates useful parameter to get path of rdiff-backup-data folder --- slapos/recipe/pbs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/slapos/recipe/pbs.py b/slapos/recipe/pbs.py index 1b8c193bf..4cb532434 100644 --- a/slapos/recipe/pbs.py +++ b/slapos/recipe/pbs.py @@ -62,6 +62,11 @@ def promise(args): class Recipe(GenericSlapRecipe, Notify, Callback): + def _options(self, options): + if 'slave-instance-list' in options: + for slave in json.loads(options['slave-instance-list']): + if slave['type'] == 'pull': + options['rdiff-backup-data-folder'] = str(os.path.join(options['directory'], slave['name'], 'rdiff-backup-data')) def wrapper_push(self, remote_schema, local_dir, remote_dir, rdiff_wrapper_path): # Create a simple rdiff-backup wrapper that will push -- 2.30.9