yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #59550
[Bug 1648207] Re: Bug in Python API "!=" doesn't behave as expected
When you say 'objects' do you mean nova.objects.* objects? The
attachment doesn't load for me.
** Also affects: oslo.versionedobjects
Importance: Undecided
Status: New
** Summary changed:
- Bug in Python API "!=" doesn't behave as expected
+ Bug in Python API "!=" doesn't behave as expected for versioned objects
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1648207
Title:
Bug in Python API "!=" doesn't behave as expected for base.Resource
objects
Status in python-novaclient:
Confirmed
Bug description:
The result of some OpenStack objects, for example a server or a
volume, do not compare with None as expected. For example if a server
has been found and is clearly not None (e.g. I can print out its name)
the test "server!=None" will be False. This really isn't the expected
behavior. I can worked around this by using the "server is not None"
but this would make bugs appear very easily if I slip back into "!="
which is my usual habit, and could be other's habit as well. I have
attached a simple script which should reproduce the bug.
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-novaclient/+bug/1648207/+subscriptions
References