Forum Discussion
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 =...
L4L7_53191
Sep 03, 2011Nimbostratus
Michael: Disclaimer - I've not actually tested this yet, but I've got an idea of what may be going on. I think what you may be dealing with is that Suds/pyControl are returning specific objects, so using s1 == s2 isn't a consistent way to compare them.
For an example of why I say this, refer to http://docs.python.org/library/stdtypes.html, where there is this comment on testing equality of class instances:
Instances of a class normally compare as non-equal unless the class defines the __cmp__() method. Refer to Basic customization) for information on the use of this method to effect object comparisons.
But again, I've not been able to test this and validate my statements so have a look and see if this is consistent with what you're seeing. Either way, post back and we'll figure out what is going on.
--Matt
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects