From f0ca8ab06ef8cd5b14140324c71eb18f0fc81fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Thu, 20 Oct 2011 13:40:04 +0200 Subject: [PATCH] Accept slap-parameter section existence. It allows provide to set some defaults. --- slapos/recipe/softwaretype.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slapos/recipe/softwaretype.py b/slapos/recipe/softwaretype.py index 7554faf89..1a9908636 100644 --- a/slapos/recipe/softwaretype.py +++ b/slapos/recipe/softwaretype.py @@ -98,7 +98,8 @@ class Recipe: buildout.set('buildout', 'installed', '.installed-%s.cfg' % software_type) - buildout.add_section('slap-parameter') + if not buildout.has_section('slap-parameter'): + buildout.add_section('slap-parameter') for parameter, value in self.parameter_dict.items(): buildout.set('slap-parameter', parameter, value) -- 2.30.9