summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-05-14 12:00:23 +0000
committerGerrit Code Review <review@openstack.org>2013-05-14 12:00:23 +0000
commit75af47a596b47674deec3867d81fabbea243d2a0 (patch)
tree8cd4f3a627512e8feaeee4d30753340c82212d1c /nova/utils.py
parent874e8203fab39fee955a5a3cc468a77a02049a62 (diff)
parent3c36cbdbc83c1fe1e83fb0733101f84a7a61a0f7 (diff)
downloadnova-75af47a596b47674deec3867d81fabbea243d2a0.tar.gz
nova-75af47a596b47674deec3867d81fabbea243d2a0.tar.xz
nova-75af47a596b47674deec3867d81fabbea243d2a0.zip
Merge "Hide lock_prefix argument using synchronized_with_prefix()"
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/utils.py b/nova/utils.py
index aaa46d31e..3af79a6df 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -44,6 +44,7 @@ from oslo.config import cfg
from nova import exception
from nova.openstack.common import excutils
from nova.openstack.common import importutils
+from nova.openstack.common import lockutils
from nova.openstack.common import log as logging
from nova.openstack.common import processutils
from nova.openstack.common.rpc import common as rpc_common
@@ -97,6 +98,8 @@ BYTE_MULTIPLIERS = {
'k': 1024,
}
+synchronized = lockutils.synchronized_with_prefix('nova-')
+
def vpn_ping(address, port, timeout=0.05, session_id=None):
"""Sends a vpn negotiation packet and returns the server session.