diff --git a/lib/cdist/core/object.py b/lib/cdist/core/object.py index 12d16838..b6bdeee3 100644 --- a/lib/cdist/core/object.py +++ b/lib/cdist/core/object.py @@ -80,6 +80,10 @@ class Object(object): def __repr__(self): return '' % self.name + def __eq__(self, other): + """define equality as 'attributes are the same'""" + return self.__dict__ == other.__dict__ + @property def explorer_path(self): # create absolute path