Commit f61bc625 authored by Ayush Tiwari's avatar Ayush Tiwari

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

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