NSXv3: Add lock around filename in cert provider

filename function is not supposed to be called outside with block,
but better be safe then sorry

Change-Id: Icad41bd2f8b3520cb521fb8d43b86d6130eb9442
This commit is contained in:
Anna Khmelnitsky 2017-07-04 13:16:06 -07:00
parent b01a18c210
commit a7826cb08d

View File

@ -126,7 +126,8 @@ class DbCertProvider(client_cert.ClientCertProvider):
self._on_exit()
def filename(self):
return self._filename
with self.lock:
return self._filename
def get_client_cert_provider():