)]}'
{"nova/image/glance.py":[{"author":{"_account_id":8213,"name":"Claudiu Belu","email":"cbelu@cloudbasesolutions.com","username":"claudiub"},"change_message_id":"05012dae26ada5d54132b463712581f08e859156","unresolved":false,"context_lines":[{"line_number":576,"context_line":"                output[attr] \u003d getattr(image, attr, None)"},{"line_number":577,"context_line":"        # NOTE(mdorman): \u0027size\u0027 attribute must not be \u0027None\u0027, so use 0 instead"},{"line_number":578,"context_line":"        elif attr \u003d\u003d \u0027size\u0027:"},{"line_number":579,"context_line":"            output[attr] \u003d getattr(image, attr, 0)"},{"line_number":580,"context_line":"        else:"},{"line_number":581,"context_line":"            # NOTE(xarses): Anything that is caught with the default value"},{"line_number":582,"context_line":"            # will result in a additional lookup to glance for said attr."}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_ac5f4d71","line":579,"updated":"2015-09-14 19:29:05.000000000","message":"so, getattr will return the attr value if attr exists, even though its value is None. \n\nhttps://docs.python.org/2/library/functions.html#getattr\n\nyou could validate this through a unit test.","commit_id":"e0819972454f252b0d9c7861e4677af5ca70f308"}]}
