Comment 2 for bug 1075376

Revision history for this message
Joseph Heck (heckj) wrote :

Guang -

the "loaded" is set to true because the entire resource has been retrieved in that code path, and the intention of the "loaded" attribute was to signify that maybe only a partial resource was created (it's possible to create a resource with just an ID) - at which point the first time any other attribute is used, it gets loaded in the background.

It's the common (albiet confusing and obscure) pattern behind all the manager/base resource mechanisms in the openstack clients.