)]}'
{"manila/share/drivers/netapp/dataontap/client/client_cmode.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"0e0013cb7dd1ff5ae7d92f060fd5e6ae30f3b164","unresolved":false,"context_lines":[{"line_number":254,"context_line":"    @na_utils.trace"},{"line_number":255,"context_line":"    def list_node_data_ports(self, node):"},{"line_number":256,"context_line":"        ports \u003d self.get_node_data_ports(node)"},{"line_number":257,"context_line":"        return [port.get(\u0027port\u0027) for port in ports]"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"    @na_utils.trace"},{"line_number":260,"context_line":"    def get_node_data_ports(self, node):"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_f8aac06f","line":257,"updated":"2015-04-02 18:05:10.000000000","message":"Is possible for port[\u0027port\u0027] to be None?","commit_id":"fff90e337d1cef69f1203a3746f0631ed4e2cbe3"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"cb3cd54f932d6316f775c54f84ed7a35b53c47c5","unresolved":false,"context_lines":[{"line_number":254,"context_line":"    @na_utils.trace"},{"line_number":255,"context_line":"    def list_node_data_ports(self, node):"},{"line_number":256,"context_line":"        ports \u003d self.get_node_data_ports(node)"},{"line_number":257,"context_line":"        return [port.get(\u0027port\u0027) for port in ports]"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"    @na_utils.trace"},{"line_number":260,"context_line":"    def get_node_data_ports(self, node):"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_5803ec42","line":257,"in_reply_to":"baa041b7_f8aac06f","updated":"2015-04-02 19:21:39.000000000","message":"Good question, but that really shouldn\u0027t happen.  The port name is one of the primary keys in the port table in Data ONTAP, and the primary key values are always returned in the API result whether they are requested or not.","commit_id":"fff90e337d1cef69f1203a3746f0631ed4e2cbe3"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"8f280fa9f62ff854db10b8ebe16777eb6f5009f8","unresolved":false,"context_lines":[{"line_number":302,"context_line":""},{"line_number":303,"context_line":"        def sort_key(port):"},{"line_number":304,"context_line":"            value \u003d port.get(\u0027speed\u0027)"},{"line_number":305,"context_line":"            if not value or not isinstance(value, str):"},{"line_number":306,"context_line":"                return 0"},{"line_number":307,"context_line":"            elif value.isdigit():"},{"line_number":308,"context_line":"                return int(value)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_5b8f8d23","line":305,"updated":"2015-04-01 21:32:27.000000000","message":"if not (value and isinstance(value, six.string_types)):","commit_id":"fff90e337d1cef69f1203a3746f0631ed4e2cbe3"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"cb3cd54f932d6316f775c54f84ed7a35b53c47c5","unresolved":false,"context_lines":[{"line_number":302,"context_line":""},{"line_number":303,"context_line":"        def sort_key(port):"},{"line_number":304,"context_line":"            value \u003d port.get(\u0027speed\u0027)"},{"line_number":305,"context_line":"            if not value or not isinstance(value, str):"},{"line_number":306,"context_line":"                return 0"},{"line_number":307,"context_line":"            elif value.isdigit():"},{"line_number":308,"context_line":"                return int(value)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_226d9c98","line":305,"in_reply_to":"baa041b7_5b8f8d23","updated":"2015-04-02 19:21:39.000000000","message":"Done","commit_id":"fff90e337d1cef69f1203a3746f0631ed4e2cbe3"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"8f280fa9f62ff854db10b8ebe16777eb6f5009f8","unresolved":false,"context_lines":[{"line_number":309,"context_line":"            elif value \u003d\u003d \u0027undef\u0027:"},{"line_number":310,"context_line":"                return 1"},{"line_number":311,"context_line":"            elif value \u003d\u003d \u0027auto\u0027:"},{"line_number":312,"context_line":"                return 2"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"        return sorted(ports, key\u003dsort_key, reverse\u003dTrue)"},{"line_number":315,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_dba39d9d","line":312,"updated":"2015-04-01 21:32:27.000000000","message":"No \"else\"?","commit_id":"fff90e337d1cef69f1203a3746f0631ed4e2cbe3"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"cb3cd54f932d6316f775c54f84ed7a35b53c47c5","unresolved":false,"context_lines":[{"line_number":309,"context_line":"            elif value \u003d\u003d \u0027undef\u0027:"},{"line_number":310,"context_line":"                return 1"},{"line_number":311,"context_line":"            elif value \u003d\u003d \u0027auto\u0027:"},{"line_number":312,"context_line":"                return 2"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"        return sorted(ports, key\u003dsort_key, reverse\u003dTrue)"},{"line_number":315,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_62fa84bf","line":312,"in_reply_to":"baa041b7_dba39d9d","updated":"2015-04-02 19:21:39.000000000","message":"Done.  This is an enum in the API docs so an else shouldn\u0027t be needed, but I agree it\u0027s always safer to have one.","commit_id":"fff90e337d1cef69f1203a3746f0631ed4e2cbe3"}]}
