in hostfactory/host_provider/src/util.py [0:0]
def _unlock(self):
self.lock_count -= 1
if self.lock_count > 0:
return
try:
self.lockfp.close()
except IOError:
self.logger.exception("Error closing lock - %s" % self.lockpath)