Bug in Python API "!=" doesn't behave as expected for base.Resource objects
Bug #1648207 reported by
Chris Geroux
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Low
|
Akshil Verma |
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.
Changed in python-novaclient: | |
assignee: | nobody → Akshil (akshilv) |
Changed in python-novaclient: | |
status: | Confirmed → In Progress |
Changed in python-novaclient: | |
status: | In Progress → Fix Committed |
status: | Fix Committed → In Progress |
To post a comment you must log in.
When you say 'objects' do you mean nova.objects.* objects? The attachment doesn't load for me.