)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"ef43ef83ee34e70b747845fd6c0e0199708d2df5","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     liu-sheng \u003cliusheng@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-07-16 12:11:47 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Correct the bash completion of CLI"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, the \"neutron help\" command in CLI dosen\u0027t expose the"},{"line_number":10,"context_line":"\"bash-completion\" command to user, but actually, the \"neutron"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_b7a50949","line":7,"updated":"2014-07-16 21:41:34.000000000","message":"This title does not accurately reflect what this patch does. Perhaps something along the lines of:\n\n\u0027Correct display of bash-completion in help output\u0027","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"90390764fc78b82427f3d19b1b70688e4b595c3b","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     liu-sheng \u003cliusheng@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-07-16 12:11:47 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Correct the bash completion of CLI"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, the \"neutron help\" command in CLI dosen\u0027t expose the"},{"line_number":10,"context_line":"\"bash-completion\" command to user, but actually, the \"neutron"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_270d4136","line":7,"in_reply_to":"baada198_8f84695e","updated":"2014-07-17 03:44:11.000000000","message":"Okay. If that is the intent, then your commit message makes sense :)","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"2df8d9bb81912cd68932053784d1de4010dfafc2","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     liu-sheng \u003cliusheng@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-07-16 12:11:47 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Correct the bash completion of CLI"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, the \"neutron help\" command in CLI dosen\u0027t expose the"},{"line_number":10,"context_line":"\"bash-completion\" command to user, but actually, the \"neutron"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_8f84695e","line":7,"in_reply_to":"baada198_b7a50949","updated":"2014-07-17 01:48:49.000000000","message":"yeah, maybe, but I think this patch dose not only correct the help output, and also adds the available \"bash-completion\" and removes the unavailable \"complete\" command.","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"ef43ef83ee34e70b747845fd6c0e0199708d2df5","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Correct the bash completion of CLI"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, the \"neutron help\" command in CLI dosen\u0027t expose the"},{"line_number":10,"context_line":"\"bash-completion\" command to user, but actually, the \"neutron"},{"line_number":11,"context_line":"bash-completion\" command is available. Additionally, there is a \"complete\""},{"line_number":12,"context_line":"command in outputs of \"neutron help\", but this command will print a wrong"},{"line_number":13,"context_line":"result. This patch add the \"bash-completion\" command to commands list of"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_3771f9e0","line":10,"updated":"2014-07-16 21:41:34.000000000","message":"Change \"user\" to \"users\" or \"the user\".","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"2df8d9bb81912cd68932053784d1de4010dfafc2","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Correct the bash completion of CLI"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, the \"neutron help\" command in CLI dosen\u0027t expose the"},{"line_number":10,"context_line":"\"bash-completion\" command to user, but actually, the \"neutron"},{"line_number":11,"context_line":"bash-completion\" command is available. Additionally, there is a \"complete\""},{"line_number":12,"context_line":"command in outputs of \"neutron help\", but this command will print a wrong"},{"line_number":13,"context_line":"result. This patch add the \"bash-completion\" command to commands list of"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_af6dadce","line":10,"in_reply_to":"baada198_3771f9e0","updated":"2014-07-17 01:48:49.000000000","message":"user-\u003eusers? Done","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"ef43ef83ee34e70b747845fd6c0e0199708d2df5","unresolved":false,"context_lines":[{"line_number":11,"context_line":"bash-completion\" command is available. Additionally, there is a \"complete\""},{"line_number":12,"context_line":"command in outputs of \"neutron help\", but this command will print a wrong"},{"line_number":13,"context_line":"result. This patch add the \"bash-completion\" command to commands list of"},{"line_number":14,"context_line":"neutron CLI and remove the \"complete\" command."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I0f2ec22da7ba36f79197acb41d0621fc726cc0f3"},{"line_number":17,"context_line":"Closes-Bug: #1340647"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_d7999dd1","line":14,"updated":"2014-07-16 21:41:34.000000000","message":"The \"complete\" command is not removed. It still works after your patch, but it just doesn\u0027t show up in the output of \"neutron help\".\n\nAlso \"add\" should be \"adds\".\nAnd \"remove\" should be \"removes\".","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"ac74637345ac70a1e0842d246b815e1b14304611","unresolved":false,"context_lines":[{"line_number":11,"context_line":"bash-completion\" command is available. Additionally, there is a \"complete\""},{"line_number":12,"context_line":"command in outputs of \"neutron help\", but this command will print a wrong"},{"line_number":13,"context_line":"result. This patch add the \"bash-completion\" command to commands list of"},{"line_number":14,"context_line":"neutron CLI and remove the \"complete\" command."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I0f2ec22da7ba36f79197acb41d0621fc726cc0f3"},{"line_number":17,"context_line":"Closes-Bug: #1340647"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_6bb9a978","line":14,"in_reply_to":"baada198_273461de","updated":"2014-07-17 16:11:19.000000000","message":"Tested on latest code and works as you described. Great!","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"90390764fc78b82427f3d19b1b70688e4b595c3b","unresolved":false,"context_lines":[{"line_number":11,"context_line":"bash-completion\" command is available. Additionally, there is a \"complete\""},{"line_number":12,"context_line":"command in outputs of \"neutron help\", but this command will print a wrong"},{"line_number":13,"context_line":"result. This patch add the \"bash-completion\" command to commands list of"},{"line_number":14,"context_line":"neutron CLI and remove the \"complete\" command."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I0f2ec22da7ba36f79197acb41d0621fc726cc0f3"},{"line_number":17,"context_line":"Closes-Bug: #1340647"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_273461de","line":14,"in_reply_to":"baada198_2f4a7d55","updated":"2014-07-17 03:44:11.000000000","message":"I can\u0027t test this at the moment, but I will get back to you when I get another chance to look at it. I am pretty sure I was using the latest code and that I was able to do \"neutron complete\" but I could be wrong.","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"2df8d9bb81912cd68932053784d1de4010dfafc2","unresolved":false,"context_lines":[{"line_number":11,"context_line":"bash-completion\" command is available. Additionally, there is a \"complete\""},{"line_number":12,"context_line":"command in outputs of \"neutron help\", but this command will print a wrong"},{"line_number":13,"context_line":"result. This patch add the \"bash-completion\" command to commands list of"},{"line_number":14,"context_line":"neutron CLI and remove the \"complete\" command."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I0f2ec22da7ba36f79197acb41d0621fc726cc0f3"},{"line_number":17,"context_line":"Closes-Bug: #1340647"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"baada198_2f4a7d55","line":14,"in_reply_to":"baada198_d7999dd1","updated":"2014-07-17 01:48:49.000000000","message":"I have tested this patch with the latest neutronclient code, if use \"neutron complete\" command, the CLI will print this error: Unknown command [u\u0027complete\u0027], did you have tested with latest code?\n\nthanks for correcting my typo :D, Done","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"6d200472fab57eb9100964f26bfa022c9dfeb5ea","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Correct the bash completion of CLI"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, the \"neutron help\" command in CLI dosen\u0027t exposes the"},{"line_number":10,"context_line":"\"bash-completion\" command to users, but actually, the \"neutron"},{"line_number":11,"context_line":"bash-completion\" command is available. Additionally, there is a \"complete\""},{"line_number":12,"context_line":"command in outputs of \"neutron help\", but this command will prints a wrong"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"baada198_95339612","line":9,"updated":"2014-07-17 16:12:38.000000000","message":"Sorry to keep pointing out typos... but \"exposes\" should just be \"expose\".\n\nAnd \"dosen\u0027t\" should be \"doesn\u0027t\" or \"does not\".","commit_id":"b7aec96999fad983b1983f3e168745fb61a52fd7"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"2709419dd135450581ea6527e6f938beb49a6595","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Correct the bash completion of CLI"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently, the \"neutron help\" command in CLI dosen\u0027t exposes the"},{"line_number":10,"context_line":"\"bash-completion\" command to users, but actually, the \"neutron"},{"line_number":11,"context_line":"bash-completion\" command is available. Additionally, there is a \"complete\""},{"line_number":12,"context_line":"command in outputs of \"neutron help\", but this command will prints a wrong"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"baada198_e34f8e68","line":9,"in_reply_to":"baada198_95339612","updated":"2014-07-18 02:28:42.000000000","message":"hehe, you needn\u0027t to say \"sorry\", and you can directly give a \"-1\" for this o/, thank you very munch for pointing out my typos, we should ensure the code and commit message correct before merging","commit_id":"b7aec96999fad983b1983f3e168745fb61a52fd7"}],"neutronclient/shell.py":[{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"ef43ef83ee34e70b747845fd6c0e0199708d2df5","unresolved":false,"context_lines":[{"line_number":332,"context_line":"            resource \u003d \"bash_completion\""},{"line_number":333,"context_line":"            log \u003d self.log"},{"line_number":334,"context_line":"        # NOTE(liusheng): here we pop the \u0027complete\u0027 in commands and add the"},{"line_number":335,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."},{"line_number":336,"context_line":"        self.command_manager.commands.pop(\u0027complete\u0027)"},{"line_number":337,"context_line":"        self.command_manager.add_command(\u0027bash-completion\u0027,"},{"line_number":338,"context_line":"                                         _bash_completion_cls)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_971ba572","line":335,"updated":"2014-07-16 21:41:34.000000000","message":"\"outputs\" should be \"output\".","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"90390764fc78b82427f3d19b1b70688e4b595c3b","unresolved":false,"context_lines":[{"line_number":332,"context_line":"            resource \u003d \"bash_completion\""},{"line_number":333,"context_line":"            log \u003d self.log"},{"line_number":334,"context_line":"        # NOTE(liusheng): here we pop the \u0027complete\u0027 in commands and add the"},{"line_number":335,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."},{"line_number":336,"context_line":"        self.command_manager.commands.pop(\u0027complete\u0027)"},{"line_number":337,"context_line":"        self.command_manager.add_command(\u0027bash-completion\u0027,"},{"line_number":338,"context_line":"                                         _bash_completion_cls)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_cf14a14f","line":335,"in_reply_to":"baada198_4ffdf1b0","updated":"2014-07-17 03:44:11.000000000","message":"English is tricky. People generally refer to everything produced by an action as its output. We would use outputs if we were talking about multiple sources each having their own output. For example, businesses track their inputs and outputs.","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"2df8d9bb81912cd68932053784d1de4010dfafc2","unresolved":false,"context_lines":[{"line_number":332,"context_line":"            resource \u003d \"bash_completion\""},{"line_number":333,"context_line":"            log \u003d self.log"},{"line_number":334,"context_line":"        # NOTE(liusheng): here we pop the \u0027complete\u0027 in commands and add the"},{"line_number":335,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."},{"line_number":336,"context_line":"        self.command_manager.commands.pop(\u0027complete\u0027)"},{"line_number":337,"context_line":"        self.command_manager.add_command(\u0027bash-completion\u0027,"},{"line_number":338,"context_line":"                                         _bash_completion_cls)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_4ffdf1b0","line":335,"in_reply_to":"baada198_971ba572","updated":"2014-07-17 01:48:49.000000000","message":"why \"output\"? I think the return of \"neutron help\" is plural noun (my English is a bit poor :D)","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"fc62436a928cf83350cd849e631f4d75ce51641c","unresolved":false,"context_lines":[{"line_number":332,"context_line":"            resource \u003d \"bash_completion\""},{"line_number":333,"context_line":"            log \u003d self.log"},{"line_number":334,"context_line":"        # NOTE(liusheng): here we pop the \u0027complete\u0027 in commands and add the"},{"line_number":335,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."},{"line_number":336,"context_line":"        self.command_manager.commands.pop(\u0027complete\u0027)"},{"line_number":337,"context_line":"        self.command_manager.add_command(\u0027bash-completion\u0027,"},{"line_number":338,"context_line":"                                         _bash_completion_cls)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_07a2fd99","line":335,"in_reply_to":"baada198_cf14a14f","updated":"2014-07-17 04:10:17.000000000","message":"got it, will be done in next next PS :)","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"ef43ef83ee34e70b747845fd6c0e0199708d2df5","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."},{"line_number":336,"context_line":"        self.command_manager.commands.pop(\u0027complete\u0027)"},{"line_number":337,"context_line":"        self.command_manager.add_command(\u0027bash-completion\u0027,"},{"line_number":338,"context_line":"                                         _bash_completion_cls)"},{"line_number":339,"context_line":"        # This is instantiated in initialize_app() only when using"},{"line_number":340,"context_line":"        # password flow auth"},{"line_number":341,"context_line":"        self.auth_client \u003d None"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_773531da","line":338,"updated":"2014-07-16 21:41:34.000000000","message":"I think it would be good to have a newline between your code and the comment to clearly separate them.","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"90390764fc78b82427f3d19b1b70688e4b595c3b","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."},{"line_number":336,"context_line":"        self.command_manager.commands.pop(\u0027complete\u0027)"},{"line_number":337,"context_line":"        self.command_manager.add_command(\u0027bash-completion\u0027,"},{"line_number":338,"context_line":"                                         _bash_completion_cls)"},{"line_number":339,"context_line":"        # This is instantiated in initialize_app() only when using"},{"line_number":340,"context_line":"        # password flow auth"},{"line_number":341,"context_line":"        self.auth_client \u003d None"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_ef0a4526","line":338,"in_reply_to":"baada198_6f2b9533","updated":"2014-07-17 03:44:11.000000000","message":"I do not have any rule to support me on this. Either way should be fine. I only suggested it because I that in the original there was a newline between 327 and 329.","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"2df8d9bb81912cd68932053784d1de4010dfafc2","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."},{"line_number":336,"context_line":"        self.command_manager.commands.pop(\u0027complete\u0027)"},{"line_number":337,"context_line":"        self.command_manager.add_command(\u0027bash-completion\u0027,"},{"line_number":338,"context_line":"                                         _bash_completion_cls)"},{"line_number":339,"context_line":"        # This is instantiated in initialize_app() only when using"},{"line_number":340,"context_line":"        # password flow auth"},{"line_number":341,"context_line":"        self.auth_client \u003d None"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_6f2b9533","line":338,"in_reply_to":"baada198_773531da","updated":"2014-07-17 01:48:49.000000000","message":"why need a newline? the following code is not have a newline, and I haven\u0027t found any rule about your suggestion.","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"fc62436a928cf83350cd849e631f4d75ce51641c","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."},{"line_number":336,"context_line":"        self.command_manager.commands.pop(\u0027complete\u0027)"},{"line_number":337,"context_line":"        self.command_manager.add_command(\u0027bash-completion\u0027,"},{"line_number":338,"context_line":"                                         _bash_completion_cls)"},{"line_number":339,"context_line":"        # This is instantiated in initialize_app() only when using"},{"line_number":340,"context_line":"        # password flow auth"},{"line_number":341,"context_line":"        self.auth_client \u003d None"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_c7aac584","line":338,"in_reply_to":"baada198_ef0a4526","updated":"2014-07-17 04:10:17.000000000","message":"got it, in PS3 I have add blank line to make this code clearer :D thanks","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"da9c2c422d64ff86ed963ec718563ff05c5aeed0","unresolved":false,"context_lines":[{"line_number":57,"context_line":"from neutronclient.neutron.v2_0 import securitygroup"},{"line_number":58,"context_line":"from neutronclient.neutron.v2_0 import servicetype"},{"line_number":59,"context_line":"from neutronclient.neutron.v2_0 import subnet"},{"line_number":60,"context_line":"from neutronclient.neutron.v2_0 import UpdateCommand"},{"line_number":61,"context_line":"from neutronclient.neutron.v2_0.vpn import ikepolicy"},{"line_number":62,"context_line":"from neutronclient.neutron.v2_0.vpn import ipsec_site_connection"},{"line_number":63,"context_line":"from neutronclient.neutron.v2_0.vpn import ipsecpolicy"}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_e1db38eb","line":60,"updated":"2014-08-15 06:24:55.000000000","message":"Please use a module-level import.\n\n  from neutronclient.neutron import v2_0 as neutronV20","commit_id":"8e8b1443c434e7e0f816e01ef6ae5fae1c78fc01"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"24cd6baa0e9a54ac40e0952365de1ea19fae18e0","unresolved":false,"context_lines":[{"line_number":57,"context_line":"from neutronclient.neutron.v2_0 import securitygroup"},{"line_number":58,"context_line":"from neutronclient.neutron.v2_0 import servicetype"},{"line_number":59,"context_line":"from neutronclient.neutron.v2_0 import subnet"},{"line_number":60,"context_line":"from neutronclient.neutron.v2_0 import UpdateCommand"},{"line_number":61,"context_line":"from neutronclient.neutron.v2_0.vpn import ikepolicy"},{"line_number":62,"context_line":"from neutronclient.neutron.v2_0.vpn import ipsec_site_connection"},{"line_number":63,"context_line":"from neutronclient.neutron.v2_0.vpn import ipsecpolicy"}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_781359b8","line":60,"in_reply_to":"7ac7a964_e1db38eb","updated":"2014-09-04 06:31:46.000000000","message":"will be done, thanks","commit_id":"8e8b1443c434e7e0f816e01ef6ae5fae1c78fc01"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"d3ef5bc59eda1c7ab403605f5e9ffc12c2e7d8b3","unresolved":false,"context_lines":[{"line_number":327,"context_line":"        for k, v in self.commands[apiversion].items():"},{"line_number":328,"context_line":"            self.command_manager.add_command(k, v)"},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"        class _bash_completion_cls(UpdateCommand):"},{"line_number":331,"context_line":"            \"\"\"Prints all of the commands and options for bash-completion.\"\"\""},{"line_number":332,"context_line":"            resource \u003d \"bash_completion\""},{"line_number":333,"context_line":"            log \u003d self.log"}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_871c5479","line":330,"updated":"2014-08-15 07:42:41.000000000","message":"pedant note1: Why not call this class BashCompletionCommand\npedant note2: Why is it an UpdateCommand?\n\nSorry about these questions - it\u0027s probably just my ignorance.","commit_id":"8e8b1443c434e7e0f816e01ef6ae5fae1c78fc01"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"1477896e8d4b99b127cc702fc15c00d9a8f52a26","unresolved":false,"context_lines":[{"line_number":327,"context_line":"        for k, v in self.commands[apiversion].items():"},{"line_number":328,"context_line":"            self.command_manager.add_command(k, v)"},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"        class _bash_completion_cls(UpdateCommand):"},{"line_number":331,"context_line":"            \"\"\"Prints all of the commands and options for bash-completion.\"\"\""},{"line_number":332,"context_line":"            resource \u003d \"bash_completion\""},{"line_number":333,"context_line":"            log \u003d self.log"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa98f980_4149ea5e","line":330,"in_reply_to":"7ac7a964_256e1597","updated":"2014-09-04 06:38:33.000000000","message":"this in-function class is just for adding a command, is should be inherited from UpdateCommand class.","commit_id":"8e8b1443c434e7e0f816e01ef6ae5fae1c78fc01"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"24cd6baa0e9a54ac40e0952365de1ea19fae18e0","unresolved":false,"context_lines":[{"line_number":327,"context_line":"        for k, v in self.commands[apiversion].items():"},{"line_number":328,"context_line":"            self.command_manager.add_command(k, v)"},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"        class _bash_completion_cls(UpdateCommand):"},{"line_number":331,"context_line":"            \"\"\"Prints all of the commands and options for bash-completion.\"\"\""},{"line_number":332,"context_line":"            resource \u003d \"bash_completion\""},{"line_number":333,"context_line":"            log \u003d self.log"}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_256e1597","line":330,"in_reply_to":"7ac7a964_871c5479","updated":"2014-09-04 06:31:46.000000000","message":"this in-function class is just","commit_id":"8e8b1443c434e7e0f816e01ef6ae5fae1c78fc01"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"d3ef5bc59eda1c7ab403605f5e9ffc12c2e7d8b3","unresolved":false,"context_lines":[{"line_number":334,"context_line":""},{"line_number":335,"context_line":"        # NOTE(liusheng): here we pop the \u0027complete\u0027 in commands and add the"},{"line_number":336,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."},{"line_number":337,"context_line":"        self.command_manager.commands.pop(\u0027complete\u0027)"},{"line_number":338,"context_line":"        self.command_manager.add_command(\u0027bash-completion\u0027,"},{"line_number":339,"context_line":"                                         _bash_completion_cls)"},{"line_number":340,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_f296a893","line":337,"updated":"2014-08-15 07:42:41.000000000","message":"is this coming from cliff? Could it be that actually \"complete\" should be a valid command but instead the neutron client is mapping to bash-completion?\nhttps://github.com/openstack/python-neutronclient/blob/master/neutronclient/shell.py#L646","commit_id":"8e8b1443c434e7e0f816e01ef6ae5fae1c78fc01"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"24cd6baa0e9a54ac40e0952365de1ea19fae18e0","unresolved":false,"context_lines":[{"line_number":334,"context_line":""},{"line_number":335,"context_line":"        # NOTE(liusheng): here we pop the \u0027complete\u0027 in commands and add the"},{"line_number":336,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."},{"line_number":337,"context_line":"        self.command_manager.commands.pop(\u0027complete\u0027)"},{"line_number":338,"context_line":"        self.command_manager.add_command(\u0027bash-completion\u0027,"},{"line_number":339,"context_line":"                                         _bash_completion_cls)"},{"line_number":340,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_331e6264","line":337,"in_reply_to":"7ac7a964_f296a893","updated":"2014-09-04 06:31:46.000000000","message":"so long from last commit that I almost forget the reason for this change, but I\u0027m glad to answer you :D.\n\n1. yeah, the \"complete\" is hard-coded in cliff, for all others project (like nova, ceilometer) use \"bash-completion\", so it is better to use bash-completion to keep consistency. Additionally, the \"neutron complete\" command is usable but return a wrong message, and the \"neutron bash-completion\" is also usable, but not in result of \"neutron help\". and also, there is a _bash_completion method in Line 492 to provide the bash completion","commit_id":"8e8b1443c434e7e0f816e01ef6ae5fae1c78fc01"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1f54ea3f1ec06db23e60a7ce171f30cd31469ba5","unresolved":false,"context_lines":[{"line_number":344,"context_line":"        self.commands \u003d COMMANDS"},{"line_number":345,"context_line":"        for k, v in self.commands[apiversion].items():"},{"line_number":346,"context_line":"            self.command_manager.add_command(k, v)"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"        class _BashCompletionCommand(neutronV20.NeutronCommand):"},{"line_number":349,"context_line":"            \"\"\"Prints all of the commands and options for bash-completion.\"\"\""},{"line_number":350,"context_line":"            resource \u003d \"bash_completion\""}],"source_content_type":"text/x-python","patch_set":6,"id":"baa201ad_bcd01cf7","line":347,"updated":"2014-10-05 20:55:35.000000000","message":"Can we integrate _bash_completion() at L.632 and this class _BashCompletionCommand? It is better to have the implementation and the command definition in one place. Hopefully _bash_completion output is generated by Command class rather than special handling below.","commit_id":"425078d49396d2b441971a80fdb4e8ce5e4925da"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1f54ea3f1ec06db23e60a7ce171f30cd31469ba5","unresolved":false,"context_lines":[{"line_number":345,"context_line":"        for k, v in self.commands[apiversion].items():"},{"line_number":346,"context_line":"            self.command_manager.add_command(k, v)"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":"        class _BashCompletionCommand(neutronV20.NeutronCommand):"},{"line_number":349,"context_line":"            \"\"\"Prints all of the commands and options for bash-completion.\"\"\""},{"line_number":350,"context_line":"            resource \u003d \"bash_completion\""},{"line_number":351,"context_line":"            log \u003d self.log"}],"source_content_type":"text/x-python","patch_set":6,"id":"baa201ad_1ce048cc","line":348,"updated":"2014-10-05 20:55:35.000000000","message":"We don\u0027t need to use NeutronCommand here. neutronclient.common.command.OpenStackCommand is enough.\n\n  class _BashCompletionCommand(command.OpenStackCommand)","commit_id":"425078d49396d2b441971a80fdb4e8ce5e4925da"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1f54ea3f1ec06db23e60a7ce171f30cd31469ba5","unresolved":false,"context_lines":[{"line_number":348,"context_line":"        class _BashCompletionCommand(neutronV20.NeutronCommand):"},{"line_number":349,"context_line":"            \"\"\"Prints all of the commands and options for bash-completion.\"\"\""},{"line_number":350,"context_line":"            resource \u003d \"bash_completion\""},{"line_number":351,"context_line":"            log \u003d self.log"},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"        # NOTE(liusheng): here we pop the \u0027complete\u0027 in commands and add the"},{"line_number":354,"context_line":"        # \u0027bash-completion\u0027 to correct the outputs of \u0027neutron help\u0027."}],"source_content_type":"text/x-python","patch_set":6,"id":"baa201ad_3ce50cdd","line":351,"updated":"2014-10-05 20:55:35.000000000","message":"Why do we need to define \"resource\" and \"log\" attributes? Could you clarify?","commit_id":"425078d49396d2b441971a80fdb4e8ce5e4925da"}],"neutronclient/tests/unit/test_shell.py":[{"author":{"_account_id":12376,"name":"Skyler Berg","inactive":true},"change_message_id":"ef43ef83ee34e70b747845fd6c0e0199708d2df5","unresolved":false,"context_lines":[{"line_number":127,"context_line":"            \u0027.*--client-certificate\u0027,"},{"line_number":128,"context_line":"            \u0027.*help\u0027,"},{"line_number":129,"context_line":"            \u0027.*gateway-device-create\u0027,"},{"line_number":130,"context_line":"            \u0027.*--dns-nameserver\u0027]"},{"line_number":131,"context_line":"        for r in required:"},{"line_number":132,"context_line":"            self.assertThat(help_text,"},{"line_number":133,"context_line":"                            matchers.MatchesRegex(r, re.DOTALL | re.MULTILINE))"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_575cad4c","line":130,"updated":"2014-07-16 21:41:34.000000000","message":"You could put \"required\" at the top to be consistent with other tests.","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"},{"author":{"_account_id":8290,"name":"liusheng","email":"liusheng2048@gmail.com","username":"LiuSheng"},"change_message_id":"2df8d9bb81912cd68932053784d1de4010dfafc2","unresolved":false,"context_lines":[{"line_number":127,"context_line":"            \u0027.*--client-certificate\u0027,"},{"line_number":128,"context_line":"            \u0027.*help\u0027,"},{"line_number":129,"context_line":"            \u0027.*gateway-device-create\u0027,"},{"line_number":130,"context_line":"            \u0027.*--dns-nameserver\u0027]"},{"line_number":131,"context_line":"        for r in required:"},{"line_number":132,"context_line":"            self.assertThat(help_text,"},{"line_number":133,"context_line":"                            matchers.MatchesRegex(r, re.DOTALL | re.MULTILINE))"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_af404d08","line":130,"in_reply_to":"baada198_575cad4c","updated":"2014-07-17 01:48:49.000000000","message":"Done","commit_id":"9189e1c62b713775a9b4998c69fb937ab5b415ae"}]}
