diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-09-30 12:10:30 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-09-30 12:10:30 +0000 |
commit | b39125dd8b87d2d8bc410b91f6e17d96b6f70669 (patch) | |
tree | df7caec5d98da85f491c4c9a78580cce1a8e2898 | |
parent | 08ea549a0d88261be2085168a68206af31f73b41 (diff) | |
parent | 1c852dce85747cc5fc2b1e2f76cc604a120078de (diff) | |
download | ironic-b39125dd8b87d2d8bc410b91f6e17d96b6f70669.tar.gz |
Merge "For convention rename the first classmethod parameter to cls"
-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: |