Files
magnum/magnum/objects
Yang Hongyang d56bc4f213 Use obj_attr_is_set to check whether an attr is set in oslo_versionedobject
hasattr() have different behaviour between python 2 and 3 [1], while we can
not fix oslo_versionedobject [2], we need to use obj_attr_is_set to
check whether an attr is set in oslo.versionedobject as their core
suggested [2].

[1]. https://docs.python.org/2/library/functions.html#hasattr
     https://docs.python.org/3/library/functions.html#hasattr
[2]. https://review.openstack.org/#/c/285647/

More detailed info, please refer to the launchpad bug page.

Change-Id: I9adbbb55e8560a499e8334e954cc904fb8ee3565
Closes-Bug: #1551394
Partially-Implements: blueprint magnum-python3
2016-03-01 23:20:19 +08:00
..
2016-02-04 14:02:49 +08:00
2016-02-18 18:16:35 +08:00
2016-02-07 22:54:41 -08:00
2016-02-07 22:54:41 -08:00
2016-02-07 22:54:41 -08:00
2015-11-09 16:56:49 +08:00