| Index: recipe_modules/properties/api.py
|
| diff --git a/recipe_modules/properties/api.py b/recipe_modules/properties/api.py
|
| index 305b5d1698061a4cbc747e48ba6e91ae33079645..5de2cf4f8bb7630372f5891772ff19cad6ff3055 100644
|
| --- a/recipe_modules/properties/api.py
|
| +++ b/recipe_modules/properties/api.py
|
| @@ -3,7 +3,6 @@
|
| # that can be found in the LICENSE file.
|
|
|
| from recipe_engine import recipe_api
|
| -from recipe_engine.types import freeze
|
| import collections
|
|
|
| # Use RecipeApiPlain because collections.Mapping has its own metaclass.
|
| @@ -21,25 +20,14 @@ class PropertiesApi(recipe_api.RecipeApiPlain, collections.Mapping):
|
|
|
| properties_client = recipe_api.RequireClient('properties')
|
|
|
| - def __init__(self, **kwargs):
|
| - super(PropertiesApi, self).__init__(**kwargs)
|
| - self._frozen_properties = None
|
| -
|
| - @property
|
| - def _properties(self):
|
| - if self._frozen_properties is None:
|
| - self._frozen_properties = freeze(
|
| - self.properties_client.get_properties())
|
| - return self._frozen_properties
|
| -
|
| def __getitem__(self, key):
|
| - return self._properties[key]
|
| + return self.properties_client.properties[key]
|
|
|
| def __len__(self):
|
| - return len(self._properties)
|
| + return len(self.properties_client.properties)
|
|
|
| def __iter__(self):
|
| - return iter(self._properties)
|
| + return iter(self.properties_client.properties)
|
|
|
| def legacy(self): # pragma: no cover
|
| """Returns a reduced set of properties, possibly used by legacy scripts."""
|
| @@ -54,4 +42,4 @@ class PropertiesApi(recipe_api.RecipeApiPlain, collections.Mapping):
|
|
|
| def thaw(self):
|
| """Returns a vanilla python jsonish dictionary of properties."""
|
| - return self.properties_client.get_properties()
|
| + return self.properties_client.mutable_properties()
|
|
|