diff options
author | Lucas Alvares Gomes <lucasagomes@gmail.com> | 2014-09-30 11:23:55 +0100 |
---|---|---|
committer | Lucas Alvares Gomes <lucasagomes@gmail.com> | 2014-09-30 11:28:14 +0100 |
commit | 1c852dce85747cc5fc2b1e2f76cc604a120078de (patch) | |
tree | 96d740e974a70bf0b7835292893613d154d2071c | |
parent | 9de2d21a96f440807b9822173de3fd3b6119fbe8 (diff) | |
download | ironic-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.py | 6 |
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: |