Commit 69d7b336 authored by Romain Courteaud's avatar Romain Courteaud 🐙 Committed by Łukasz Nowak

switch-softwaretype: copy the slap-configuration values

parent 552a9854
......@@ -155,6 +155,7 @@ setup(name=name,
'sshkeys_authority = slapos.recipe.sshkeys_authority:Recipe',
'sshkeys_authority.request = slapos.recipe.sshkeys_authority:Request',
'switch-softwaretype = slapos.recipe.switch_softwaretype:Recipe',
'switch-softwaretype.noop = slapos.recipe.switch_softwaretype:NoOperation',
'symbolic.link = slapos.recipe.symbolic_link:Recipe',
'tidstorage = slapos.recipe.tidstorage:Recipe',
'trac = slapos.recipe.trac:Recipe',
......
......@@ -55,6 +55,9 @@ class SubBuildout(Buildout):
# Use same slap connection
for k, v in main_buildout["slap-connection"].items():
options.append(('slap-connection', k, v))
for k, v in main_buildout["slap-configuration"].items():
options.append(('slap-configuration', k, v))
options.append(('slap-configuration', 'recipe', 'switch-softwaretype.noop'))
Buildout.__init__(self, config, options, **kwargs)
......@@ -122,3 +125,14 @@ class Recipe:
sub_buildout.install([])
update = install
class NoOperation:
def __init__(self, buildout, name, options):
self.buildout = buildout
self.options = options
self.name = name
def install(self):
return []
update = install
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment