Commit 6d662699 authored by Yusei Tahara's avatar Yusei Tahara

Don't use __ws. __(double underscores) works differently.

Revert "slapos/recipe/librecipe/generic.py: GenericBaseRecipe's _ws is a lazy attribute now."

This reverts commit 281d3774.
parent a9c07db9
...@@ -61,13 +61,7 @@ class GenericBaseRecipe(object): ...@@ -61,13 +61,7 @@ class GenericBaseRecipe(object):
self._options(options) # Options Hook self._options(options) # Options Hook
self.options = options.copy() # Updated options dict self.options = options.copy() # Updated options dict
@property self._ws = self.getWorkingSet()
def _ws(self):
# getWorkingSet() is slow and it is not always needed.
# So _ws should be a lazy attribute.
if getattr(self, '__ws', None) is None:
self.__ws = self.getWorkingSet()
return self.__ws
def update(self): def update(self):
"""By default update method does the same thing than install""" """By default update method does the same thing than install"""
......
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