Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos
Commits
69d7b336
Commit
69d7b336
authored
Feb 24, 2025
by
Romain Courteaud
🐙
Committed by
Łukasz Nowak
Mar 03, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch-softwaretype: copy the slap-configuration values
parent
552a9854
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
setup.py
setup.py
+1
-0
slapos/recipe/switch_softwaretype.py
slapos/recipe/switch_softwaretype.py
+14
-0
No files found.
setup.py
View file @
69d7b336
...
...
@@ -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'
,
...
...
slapos/recipe/switch_softwaretype.py
View file @
69d7b336
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment