Commit ad0da563 authored by Antoine Catton's avatar Antoine Catton Committed by Cédric de Saint Martin

GeneriBaseRecipe should remain offline

parent a5ab2f77
......@@ -31,7 +31,6 @@ import inspect
import re
import urllib
import urlparse
from slapos import slap as slapmodule
import pkg_resources
import zc.buildout
......@@ -129,17 +128,6 @@ class GenericBaseRecipe(object):
return pkg_resources.resource_filename(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):
"""
The purpose of this method is to generate a password which doesn't change
......
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