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 >>>
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 obj.Instance( uuid=str( uuid.uuid4( ))) 303a-48eb- 8d65-f9233c77c0 8b'
>>> import uuid
>>> instance = instance_
>>> instance.uuid
'2d066a8c-
>>> instance is None
False
>>> instance == None
False
>>> instance != None
True
>>>