Micha__Iwaszko_
Aug 23, 2011Nimbostratus
Problem with LocalLB.PoolMember.get_object_status()
I wonder what's wrong with pyControl (or something else) to produce such strange objects:
import time, pycontrol.pycontrol as pc
b = pc.BIGIP('host','user','pass',fromurl = True,wsdls = 'LocalLB.Pool','LocalLB.PoolMember'])
p = b.LocalLB.Pool.get_list()
s1 = b.LocalLB.PoolMember.get_object_status(p)
s2 = b.LocalLB.PoolMember.get_object_status(p)
if s1 == s2: print "Values are equal"
if repr(s1) == repr(s2): print "Reprs are equal"
And of course, You will only see the "Reprs are equal" line. Why is that? Do the they have some messed __eq__()?