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
Labels
Merge Requests
112
Merge Requests
112
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
87722837
Commit
87722837
authored
Feb 26, 2025
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! librecipe: stop calling getInstanceParameterDict by default
parent
abc9492b
Pipeline
#40037
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
slapos/recipe/librecipe/__init__.py
slapos/recipe/librecipe/__init__.py
+6
-6
slapos/recipe/librecipe/genericslap.py
slapos/recipe/librecipe/genericslap.py
+6
-6
No files found.
slapos/recipe/librecipe/__init__.py
View file @
87722837
...
...
@@ -253,6 +253,12 @@ class BaseSlapRecipe:
"""Generates password. Shall be secured, until then all are insecure"""
return
'insecure'
# Lazy load of the instance parameter dict
# to prevent an http calls if not needed
@
property
def
parameter_dict
(
self
):
return
self
.
computer_partition
.
getInstanceParameterDict
()
def
install
(
self
):
self
.
logger
.
warning
(
"BaseSlapRecipe has been deprecated. Use "
\
"GenericBaseRecipe or GenericSlapRecipe instead."
)
...
...
@@ -265,12 +271,6 @@ class BaseSlapRecipe:
self
.
setConnectionDict
=
self
.
computer_partition
.
setConnectionDict
self
.
_createDefaultDirectoryStructure
()
# Lazy load of the instance parameter dict
# to prevent an http calls if not needed
@
property
def
parameter_dict
(
self
):
return
self
.
computer_partition
.
getInstanceParameterDict
()
# call children part of install
path_list
=
self
.
_install
()
...
...
slapos/recipe/librecipe/genericslap.py
View file @
87722837
...
...
@@ -51,6 +51,12 @@ class GenericSlapRecipe(GenericBaseRecipe):
self
.
key_file
=
slap_connection
.
get
(
'key-file'
)
self
.
cert_file
=
slap_connection
.
get
(
'cert-file'
)
# Lazy load of the instance parameter dict
# to prevent an http calls if not needed
@
property
def
parameter_dict
(
self
):
return
self
.
computer_partition
.
getInstanceParameterDict
()
def
install
(
self
):
cache_key
=
"%s_%s"
%
(
self
.
computer_id
,
self
.
computer_partition_id
)
...
...
@@ -67,12 +73,6 @@ class GenericSlapRecipe(GenericBaseRecipe):
self
.
request
=
self
.
computer_partition
.
request
self
.
setConnectionDict
=
self
.
computer_partition
.
setConnectionDict
# Lazy load of the instance parameter dict
# to prevent an http calls if not needed
@
property
def
parameter_dict
(
self
):
return
self
.
computer_partition
.
getInstanceParameterDict
()
# call children part of install
path_list
=
self
.
_install
()
...
...
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