From bc567d7bb1ee9453502ccf381ca1783001b87930 Mon Sep 17 00:00:00 2001 From: Oleksii Chuprykov Date: Mon, 17 Aug 2015 20:35:18 +0300 Subject: [PATCH] Fix a typo in method name Change-Id: I9fb29cfe7f0531fac2698eab85c40d7baa288f42 --- heat/engine/resource.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/heat/engine/resource.py b/heat/engine/resource.py index c905a4d56e..989a1126d2 100644 --- a/heat/engine/resource.py +++ b/heat/engine/resource.py @@ -1129,7 +1129,7 @@ class Resource(object): replaced by more recent resource, then delete this and update the replacement resource's needed_by and replaces fields. ''' - self._aquire(engine_id) + self._acquire(engine_id) try: self.needed_by = list(set(v for v in input_data.values() if v is not None)) @@ -1289,7 +1289,7 @@ class Resource(object): @contextlib.contextmanager def lock(self, engine_id): - self._aquire(engine_id) + self._acquire(engine_id) try: yield except: # noqa @@ -1298,7 +1298,7 @@ class Resource(object): else: self._release(engine_id) - def _aquire(self, engine_id): + def _acquire(self, engine_id): updated_ok = False try: rs = resource_objects.Resource.get_obj(self.context, self.id)