ad962c05be124991ea0e28979a324bb1a92ee6ad

The string representation of an empty set is different between py27 and py35. The ObjectVersionChecker uses the string represenation of the default value of the fields as input for the hash of the object. This makes hash of an object with a set field defaulted to an empty set unstable. This patch enhances the repr generation of the Field object to avoid the unstable hash situation. Change-Id: Ie9519c1893175614d60af97b635e6ff57f2b0d7d Closes-Bug: #1771804
Team and repository tags
oslo.versionedobjects
The oslo.versionedobjects library provides a generic versioned object model that is RPC-friendly, with inbuilt serialization, field typing, and remotable method calls. It can be used to define a data model within a project independent of external APIs or database schema for the purposes of providing upgrade compatibility across distributed services.
- Free software: Apache license
- Documentation: https://docs.openstack.org/oslo.versionedobjects/latest
- Source: http://git.openstack.org/cgit/openstack/oslo.versionedobjects
- Bugs: http://bugs.launchpad.net/oslo.versionedobjects
Description
Languages
Python
100%