)]}'
{"neutron_lib/api/validators.py":[{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"93e59edb7e81e2937e088723ef08cea3e78c0e5a","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        try:"},{"line_number":123,"context_line":"            if data not in valid_values:"},{"line_number":124,"context_line":"                valid_values_display \u003d (valid_values_display or"},{"line_number":125,"context_line":"                                        six.text_type(valid_values))"},{"line_number":126,"context_line":"                msg \u003d (_(\"%(data)s is not in %(valid_values)s\") %"},{"line_number":127,"context_line":"                       {\u0027data\u0027: data, \u0027valid_values\u0027: valid_values_display})"},{"line_number":128,"context_line":"                LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_377bf08d","line":125,"updated":"2016-12-14 20:26:13.000000000","message":"Based on the work done in [1], IIRC we intentionally display the static string \u0027valid_values\u0027 if valid_values_display is not given as valid_values could be excessively large or even contain values that shouldn\u0027t be exposed.\n\n\nIf callers want this function to display the list contents they can just pass in valid_values_display\u003dstr(valid_values).\n\n\n[1] https://review.openstack.org/#/c/343799/","commit_id":"11272f07e99974948ba7dbc0b94b7840e20d1ecc"},{"author":{"_account_id":13702,"name":"yushiro","username":"yushiro","inactive":true},"change_message_id":"cf841ba8ebbfaa4e73b4677408b0e14464835e7e","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        try:"},{"line_number":123,"context_line":"            if data not in valid_values:"},{"line_number":124,"context_line":"                valid_values_display \u003d (valid_values_display or"},{"line_number":125,"context_line":"                                        six.text_type(valid_values))"},{"line_number":126,"context_line":"                msg \u003d (_(\"%(data)s is not in %(valid_values)s\") %"},{"line_number":127,"context_line":"                       {\u0027data\u0027: data, \u0027valid_values\u0027: valid_values_display})"},{"line_number":128,"context_line":"                LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_be5b4bf5","line":125,"in_reply_to":"1a6eadb0_377bf08d","updated":"2016-12-15 04:25:51.000000000","message":"I understood that underlying cause is not shown valid values.  The underlying cause is that we cannot send an argument as a \u0027valid_values_display\u0027.","commit_id":"11272f07e99974948ba7dbc0b94b7840e20d1ecc"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"e1ac2ab65ebb4c108003f4c422a40fe711c9ebd4","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        try:"},{"line_number":123,"context_line":"            if data not in valid_values:"},{"line_number":124,"context_line":"                valid_values_display \u003d (valid_values_display or"},{"line_number":125,"context_line":"                                        six.text_type(valid_values))"},{"line_number":126,"context_line":"                msg \u003d (_(\"%(data)s is not in %(valid_values)s\") %"},{"line_number":127,"context_line":"                       {\u0027data\u0027: data, \u0027valid_values\u0027: valid_values_display})"},{"line_number":128,"context_line":"                LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_fd7cf7b6","line":125,"in_reply_to":"1a6eadb0_377bf08d","updated":"2016-12-14 21:28:48.000000000","message":"In fact, this change would be like going back to the situation (https://review.openstack.org/#/c/343799/25/neutron_lib/api/validators.py) before https://review.openstack.org/#/c/343799/, where the valid values were displayed in the message\n\nUpdating the also the bug report","commit_id":"11272f07e99974948ba7dbc0b94b7840e20d1ecc"},{"author":{"_account_id":13702,"name":"yushiro","username":"yushiro","inactive":true},"change_message_id":"cf841ba8ebbfaa4e73b4677408b0e14464835e7e","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        try:"},{"line_number":123,"context_line":"            if data not in valid_values:"},{"line_number":124,"context_line":"                valid_values_display \u003d (valid_values_display or"},{"line_number":125,"context_line":"                                        six.text_type(valid_values))"},{"line_number":126,"context_line":"                msg \u003d (_(\"%(data)s is not in %(valid_values)s\") %"},{"line_number":127,"context_line":"                       {\u0027data\u0027: data, \u0027valid_values\u0027: valid_values_display})"},{"line_number":128,"context_line":"                LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_de748769","line":125,"in_reply_to":"1a6eadb0_fd7cf7b6","updated":"2016-12-15 04:25:51.000000000","message":"I understood that underlying cause is not shown valid values.  The underlying cause is that we cannot send an argument as a \u0027valid_values_display\u0027.","commit_id":"11272f07e99974948ba7dbc0b94b7840e20d1ecc"}]}
