)]}'
{"novaclient/v1_1/shell.py":[{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"d002c0382ed51b37091e2fdfde1f64a3ff7f49cf","unresolved":false,"context_lines":[{"line_number":1700,"context_line":"    metavar\u003d\u0027\u003cvolume\u003e\u0027,"},{"line_number":1701,"context_line":"    help\u003d\u0027ID of the volume to attach.\u0027)"},{"line_number":1702,"context_line":"@utils.arg(\u0027device\u0027, metavar\u003d\u0027\u003cdevice\u003e\u0027,"},{"line_number":1703,"context_line":"    help\u003d\u0027Optional Name of the device e.g. /dev/vdb.\u0027)"},{"line_number":1704,"context_line":"def do_volume_attach(cs, args):"},{"line_number":1705,"context_line":"    \"\"\"Attach a volume to a server.\"\"\""},{"line_number":1706,"context_line":"    volume \u003d cs.volumes.create_server_volume(_find_server(cs, args.server).id,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F9ukk%3D","line":1703,"updated":"2013-12-06 16:55:52.000000000","message":"Either s/Name/name/ or put the \"optional\" at the end of the help string like so:\n\n    help\u003d\u0027Name of the device e.g. /dev/vdb.  (Optional)\u0027\n\nAlso, as far as I can tell, this does not actually make the argument optional.","commit_id":"3506c7357797a27e6c407e889f339ab365d9d021"},{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"21460b29603665cb2a2ccc9085bde4919c11ca5c","unresolved":false,"context_lines":[{"line_number":1699,"context_line":"@utils.arg(\u0027volume\u0027,"},{"line_number":1700,"context_line":"    metavar\u003d\u0027\u003cvolume\u003e\u0027,"},{"line_number":1701,"context_line":"    help\u003d\u0027ID of the volume to attach.\u0027)"},{"line_number":1702,"context_line":"@utils.arg(\u0027--device\u0027, metavar\u003d\u0027\u003cdevice\u003e\u0027,"},{"line_number":1703,"context_line":"    help\u003d\u0027Name of the device e.g. /dev/vdb. (Optional)\u0027,"},{"line_number":1704,"context_line":"    default\u003dNone)"},{"line_number":1705,"context_line":"def do_volume_attach(cs, args):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F9nnM%3D","line":1702,"updated":"2013-12-09 16:04:09.000000000","message":"Switching this to a --option is going to break backwards compatibility, by the way.  It is possible to make positional arguments (like this was originally) into optional arguments; I think the magic is with the \"nargs\u003d\" keyword argument.  Check the argparse documentation to verify my recollection…","commit_id":"31ca6c22981ef1a7530ac1db7089742ae2533e90"},{"author":{"_account_id":1849,"name":"Joe Gordon","email":"joe.gordon0@gmail.com","username":"jogo"},"change_message_id":"aaad3b9733f0eadffef7219f7ec0c5a8aa123ff6","unresolved":false,"context_lines":[{"line_number":1707,"context_line":"@utils.arg(\u0027volume\u0027,"},{"line_number":1708,"context_line":"    metavar\u003d\u0027\u003cvolume\u003e\u0027,"},{"line_number":1709,"context_line":"    help\u003d\u0027ID of the volume to attach.\u0027)"},{"line_number":1710,"context_line":"@utils.arg(\u0027device\u0027, metavar\u003d\u0027\u003cdevice\u003e\u0027, default\u003dNone, nargs\u003d\u0027?\u0027,"},{"line_number":1711,"context_line":"    help\u003d\u0027Name of the device e.g. /dev/vdb. \u0027"},{"line_number":1712,"context_line":"         \u0027Use \"auto\" for autoassign (if supported)\u0027)"},{"line_number":1713,"context_line":"def do_volume_attach(cs, args):"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F8oio%3D","line":1710,"updated":"2013-12-23 23:51:39.000000000","message":"nit: these should each be on there own line just like the other cases in this file.","commit_id":"5b773adada2e1baa76032f7a38e0d4d624eb67d6"}]}
