Commit 490d6098 authored by Antoine Catton's avatar Antoine Catton

Remove dirty hack _setupAutoInstallUninstall

This hack was done in order to have the buildout uninstalling the part
and reinstalling every time.

This was because big monolitic recipe were doing some internal
calculations.

This is not needed anymore with generic recipes.
parent ce7cea6f
...@@ -47,15 +47,6 @@ class GenericSlapRecipe(GenericBaseRecipe): ...@@ -47,15 +47,6 @@ class GenericSlapRecipe(GenericBaseRecipe):
self.key_file = slap_connection.get('key-file') self.key_file = slap_connection.get('key-file')
self.cert_file = slap_connection.get('cert-file') self.cert_file = slap_connection.get('cert-file')
# setup auto uninstall/install
self._setupAutoInstallUninstall()
def _setupAutoInstallUninstall(self):
"""By default SlapOS recipes are reinstalled each time"""
# Note: It is possible to create in future subclass which will do no-op in
# this method
self.options['slapos-timestamp'] = str(time.time())
def install(self): def install(self):
self.slap.initializeConnection(self.server_url, self.key_file, self.slap.initializeConnection(self.server_url, self.key_file,
self.cert_file) self.cert_file)
......
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