Comment 5 for bug 1648207

Revision history for this message
Matt Riedemann (mriedem) wrote : Re: Bug in Python API "!=" doesn't behave as expected for versioned objects

I'm not really clear on this one, especially with the attachment not loading for me. But:

>>> from nova.objects import instance as instance_obj
>>> import uuid
>>> instance = instance_obj.Instance(uuid=str(uuid.uuid4()))
>>> instance.uuid
'2d066a8c-303a-48eb-8d65-f9233c77c08b'
>>> instance is None
False
>>> instance == None
False
>>> instance != None
True
>>>