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
ad0da563
Commit
ad0da563
authored
Aug 29, 2012
by
Antoine Catton
Committed by
Cédric de Saint Martin
Sep 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GeneriBaseRecipe should remain offline
parent
a5ab2f77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
slapos/recipe/librecipe/generic.py
slapos/recipe/librecipe/generic.py
+0
-12
No files found.
slapos/recipe/librecipe/generic.py
View file @
ad0da563
...
@@ -31,7 +31,6 @@ import inspect
...
@@ -31,7 +31,6 @@ import inspect
import
re
import
re
import
urllib
import
urllib
import
urlparse
import
urlparse
from
slapos
import
slap
as
slapmodule
import
pkg_resources
import
pkg_resources
import
zc.buildout
import
zc.buildout
...
@@ -129,17 +128,6 @@ class GenericBaseRecipe(object):
...
@@ -129,17 +128,6 @@ class GenericBaseRecipe(object):
return
pkg_resources
.
resource_filename
(
name
,
return
pkg_resources
.
resource_filename
(
name
,
'template/%s'
%
template_name
)
'template/%s'
%
template_name
)
def
getComputerPartitionInstanceParameterDict
(
self
):
slap_connection
=
self
.
buildout
[
'slap-connection'
]
slap
=
slapmodule
.
slap
()
slap
.
initializeConnection
(
slap_connection
[
'server-url'
],
slap_connection
.
get
(
'key-file'
),
slap_connection
.
get
(
'cert-file'
))
computer_partition
=
slap
.
registerComputerPartition
(
slap_connection
[
'computer-id'
],
slap_connection
[
'partition-id'
])
return
computer_partition
.
getInstanceParameterDict
()
def
generatePassword
(
self
,
len_
=
32
):
def
generatePassword
(
self
,
len_
=
32
):
"""
"""
The purpose of this method is to generate a password which doesn't change
The purpose of this method is to generate a password which doesn't change
...
...
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