This method actually changed both objects and print info.
__eq__ is not a proper name and is not designed for this case.
Rename to diff.
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
self.size = len(self.dn_list)
self.dn_list = sorted(self.dn_list)
self.size = len(self.dn_list)
self.dn_list = sorted(self.dn_list)
- def __eq__(self, other):
res = True
if self.size != other.size:
self.log("\n* DN lists have different size: %s != %s" % (self.size, other.size))
res = True
if self.size != other.size:
self.log("\n* DN lists have different size: %s != %s" % (self.size, other.size))
b2 = LDAPBundle(con2, context=context, filter_list=filter_list,
outf=self.outf, errf=self.errf)
b2 = LDAPBundle(con2, context=context, filter_list=filter_list,
outf=self.outf, errf=self.errf)
if not quiet:
self.outf.write("\n* Result for [%s]: SUCCESS\n" %
context)
if not quiet:
self.outf.write("\n* Result for [%s]: SUCCESS\n" %
context)