Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mynij
slapos-mynij-dev
Commits
b2390627
Commit
b2390627
authored
Oct 15, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support (for simplicity) both - and _ syntaxes.
When softwaretype & slapgrid are stabilized, use only -.
parent
800d3332
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
slapos/recipe/librecipe/__init__.py
slapos/recipe/librecipe/__init__.py
+16
-7
No files found.
slapos/recipe/librecipe/__init__.py
View file @
b2390627
...
@@ -90,13 +90,22 @@ class BaseSlapRecipe:
...
@@ -90,13 +90,22 @@ class BaseSlapRecipe:
]
]
# SLAP related information
# SLAP related information
slap_connection
=
buildout
[
'slap_connection'
]
try
:
self
.
computer_id
=
slap_connection
[
'computer_id'
]
slap_connection
=
buildout
[
'slap_connection'
]
self
.
computer_partition_id
=
slap_connection
[
'partition_id'
]
self
.
computer_id
=
slap_connection
[
'computer_id'
]
self
.
server_url
=
slap_connection
[
'server_url'
]
self
.
computer_partition_id
=
slap_connection
[
'partition_id'
]
self
.
software_release_url
=
slap_connection
[
'software_release_url'
]
self
.
server_url
=
slap_connection
[
'server_url'
]
self
.
key_file
=
slap_connection
.
get
(
'key_file'
)
self
.
software_release_url
=
slap_connection
[
'software_release_url'
]
self
.
cert_file
=
slap_connection
.
get
(
'cert_file'
)
self
.
key_file
=
slap_connection
.
get
(
'key_file'
)
self
.
cert_file
=
slap_connection
.
get
(
'cert_file'
)
except
zc
.
buildout
.
buildout
.
MissingSection
:
slap_connection
=
buildout
[
'slap-connection'
]
self
.
computer_id
=
slap_connection
[
'computer-id'
]
self
.
computer_partition_id
=
slap_connection
[
'partition-id'
]
self
.
server_url
=
slap_connection
[
'server-url'
]
self
.
software_release_url
=
slap_connection
[
'software_release-url'
]
self
.
key_file
=
slap_connection
.
get
(
'key-file'
)
self
.
cert_file
=
slap_connection
.
get
(
'cert-file'
)
# setup egg to give possibility to generate scripts
# setup egg to give possibility to generate scripts
self
.
egg
=
zc
.
recipe
.
egg
.
Egg
(
buildout
,
options
[
'recipe'
],
options
)
self
.
egg
=
zc
.
recipe
.
egg
.
Egg
(
buildout
,
options
[
'recipe'
],
options
)
...
...
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