Fix a typo in method name

Change-Id: I9fb29cfe7f0531fac2698eab85c40d7baa288f42
This commit is contained in:
Oleksii Chuprykov 2015-08-17 20:35:18 +03:00
parent a21614438c
commit bc567d7bb1

View File

@ -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)