)]}'
{"oslo_versionedobjects/fields.py":[{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"bc6653335fbd2fccb356e1c9ed963b8b78aacdee","unresolved":false,"context_lines":[{"line_number":406,"context_line":"        return result"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":""},{"line_number":409,"context_line":"class IPV4AndV6Address(IPAddress):"},{"line_number":410,"context_line":"    @staticmethod"},{"line_number":411,"context_line":"    def coerce(obj, attr, value):"},{"line_number":412,"context_line":"        result \u003d IPAddress.coerce(obj, attr, value)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba8a016a_77764607","line":409,"updated":"2015-11-19 19:40:11.000000000","message":"After reading Gregorz\u0027 comment, I think we can just remove this class entirely. The main IPAddress field class above essentially does what this does. We could add this to the IPAddress.coerce() method above?\n\n if not result.version in (4, 6):\n    raise ValueError(...)\n\nIn Nova, it\u0027s only used in a single object definition:\n\n nova/objects/fixed_ip.py\n 52:        \u0027address\u0027: fields.IPV4AndV6AddressField(),\n\nAnd since it\u0027s derived from IPAddress, I don\u0027t see any reason we couldn\u0027t just change the fixed_ip.FixedIP class to use IPAddress.","commit_id":"076db3d3ce96f2b761ed1530e49c6f60139b41c0"}]}
