Commit f99b8fae authored by Ayush Tiwari's avatar Ayush Tiwari

switch-softwaretype: new option to spawn a buildout independently from the current software type

parent 2bee88f1
......@@ -33,8 +33,12 @@ class Recipe:
self.buildout = buildout
self.options = options
self.name = name
# Option profile can be used just to get a buildout on that profile template
profile = self.options.get("profile")
if not profile:
self.software_type = buildout["slap-configuration"]["slap-software-type"]
section, key = self.options[self.software_type].split(":")
profile = self.options[self.software_type]
section, key = profile.split(":")
self.base = self.buildout[section][key]
def install(self):
......
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