summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-09-30 12:10:30 +0000
committerGerrit Code Review <review@openstack.org>2014-09-30 12:10:30 +0000
commitb39125dd8b87d2d8bc410b91f6e17d96b6f70669 (patch)
treedf7caec5d98da85f491c4c9a78580cce1a8e2898
parent08ea549a0d88261be2085168a68206af31f73b41 (diff)
parent1c852dce85747cc5fc2b1e2f76cc604a120078de (diff)
downloadironic-b39125dd8b87d2d8bc410b91f6e17d96b6f70669.tar.gz
Merge "For convention rename the first classmethod parameter to cls"
-rw-r--r--ironic/common/hash_ring.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ironic/common/hash_ring.py b/ironic/common/hash_ring.py
index 40f421424..b13f795d1 100644
--- a/ironic/common/hash_ring.py
+++ b/ironic/common/hash_ring.py
@@ -141,9 +141,9 @@ class HashRingManager(object):
return rings
@classmethod
- def reset(self):
- with self._lock:
- self._hash_rings = None
+ def reset(cls):
+ with cls._lock:
+ cls._hash_rings = None
def __getitem__(self, driver_name):
try: