[openstack-dev] [Nova] Detect changes in object model
shane.wang at intel.com
Tue Jan 14 07:05:00 UTC 2014
Hi Dan, are you going to cook a patch to expand the base class? Or we can do that ourselves?
For the list, I also agree your dirty assumption.
From: Dan Smith [mailto:dms at danplanet.com]
Sent: Friday, January 10, 2014 10:42 PM
To: Wang, Shane; OpenStack Development Mailing List (not for usage questions)
Cc: pmurray at hp.com; alexisl at hp.com; Tan, Lin
Subject: Re: [Nova] Detect changes in object model
> If an object A contains another object or object list (called
> sub-object), any change happened in the sub-object can't be detected
> by obj_what_changed() in object A.
Well, like the Instance object does, you can override obj_what_changed() to expose that fact to the caller. However, I think it might be good to expand the base class to check, for any NovaObject fields, for the
obj_what_changed() of the child.
How does that sound?
More information about the OpenStack-dev