summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Alvares Gomes <lucasagomes@gmail.com>2014-09-30 11:23:55 +0100
committerLucas Alvares Gomes <lucasagomes@gmail.com>2014-09-30 11:28:14 +0100
commit1c852dce85747cc5fc2b1e2f76cc604a120078de (patch)
tree96d740e974a70bf0b7835292893613d154d2071c
parent9de2d21a96f440807b9822173de3fd3b6119fbe8 (diff)
downloadironic-1c852dce85747cc5fc2b1e2f76cc604a120078de.tar.gz
For convention rename the first classmethod parameter to cls
This is a follow-up patch on 9de2d21a96f440807b9822173de3fd3b6119fbe8 Change-Id: I043cc279dce7e2dbf9511a2f23c443c438affb51
-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: