mirror of
https://github.com/ceph/ceph
synced 2024-12-11 05:57:05 +00:00
f31791e35d
* Introduced a Thrasher base class. * Updated thrashers to inherit from Thrasher. * Replaced the magic variable e with Thrasher.exception as per the discussion. Now the exception variable sets by default as the thrashers are inheriting from the Thrasher class. Fixes: https://github.com/ceph/ceph/pull/28378#discussion_r309337928 Fixes: https://tracker.ceph.com/issues/41133 Signed-off-by: Jos Collin <jcollin@redhat.com>
17 lines
298 B
Python
17 lines
298 B
Python
"""
|
|
Thrasher base class
|
|
"""
|
|
class Thrasher(object):
|
|
|
|
def __init__(self):
|
|
super(Thrasher, self).__init__()
|
|
self.exception = None
|
|
|
|
@property
|
|
def exception(self):
|
|
return self._exception
|
|
|
|
@exception.setter
|
|
def exception(self, e):
|
|
self._exception = e
|