)]}'
{"cinder/volume/drivers/rbd.py":[{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"c3cbe6f1499cc3de57cb518071dedc6f3e36f856","unresolved":false,"context_lines":[{"line_number":1332,"context_line":"            existing_ref is a dictionary of the form:"},{"line_number":1333,"context_line":"            {\u0027source-name\u0027: \u003cname of snapshot\u003e}"},{"line_number":1334,"context_line":"        \"\"\""},{"line_number":1335,"context_line":"        # Check that the reference is valid"},{"line_number":1336,"context_line":"        if \u0027source-name\u0027 not in existing_ref:"},{"line_number":1337,"context_line":"            reason \u003d _(\u0027Reference must contain source-name element.\u0027)"},{"line_number":1338,"context_line":"            raise exception.ManageExistingInvalidReference("}],"source_content_type":"text/x-python","patch_set":5,"id":"7ffa3b31_60b831e4","line":1335,"updated":"2017-04-21 03:44:07.000000000","message":"Test well in my env. Only one suggestion:\nMaybe you cane enhance \"existing_ref\" like lvm does if need another PS:\n\nif not isinstance(existing_ref, dict):\n    existing_ref \u003d {\"source-name\": existing_ref}","commit_id":"3e1729d113e1fb5400c50d7758d60764d7ec48eb"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"c3cbe6f1499cc3de57cb518071dedc6f3e36f856","unresolved":false,"context_lines":[{"line_number":1380,"context_line":"        :param existing_ref:"},{"line_number":1381,"context_line":"            existing_ref is a dictionary of the form:"},{"line_number":1382,"context_line":"            {\u0027source-name\u0027: \u003cname of rbd snapshot\u003e}"},{"line_number":1383,"context_line":"        \"\"\""},{"line_number":1384,"context_line":"        volume_name \u003d utils.convert_str(snapshot.volume_name)"},{"line_number":1385,"context_line":"        with RBDVolumeProxy(self, volume_name) as volume:"},{"line_number":1386,"context_line":"            snapshot_name \u003d existing_ref[\u0027source-name\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ffa3b31_20cea981","line":1383,"updated":"2017-04-21 03:44:07.000000000","message":"ditto","commit_id":"3e1729d113e1fb5400c50d7758d60764d7ec48eb"}]}
