From: Ricardo Dias Date: Fri, 20 Apr 2018 15:35:44 +0000 (+0100) Subject: mgr/dashboard: task: fix bug in __eq__ method X-Git-Tag: v14.0.1~1262^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f15b93e94d63ceb9cf0109ebc9cb4608c38e5d88;p=ceph.git mgr/dashboard: task: fix bug in __eq__ method Signed-off-by: Ricardo Dias --- diff --git a/src/pybind/mgr/dashboard/tools.py b/src/pybind/mgr/dashboard/tools.py index 890a9c6129b..0849f839502 100644 --- a/src/pybind/mgr/dashboard/tools.py +++ b/src/pybind/mgr/dashboard/tools.py @@ -579,7 +579,7 @@ class Task(object): return hash((self.name, tuple(sorted(self.metadata.items())))) def __eq__(self, other): - return self.name == self.name and self.metadata == self.metadata + return self.name == other.name and self.metadata == other.metadata def __str__(self): return "Task(ns={}, md={})" \