@@ -95,7 +95,7 @@ static void json_parse_port(nvme_subsystem_t s, struct json_object *port_obj)
9595 if (!c )
9696 return ;
9797 json_update_attributes (c , port_obj );
98- attr_obj = json_object_object_get (port_obj , "dhchap_key " );
98+ attr_obj = json_object_object_get (port_obj , "dhchap_ctrl_key " );
9999 if (attr_obj )
100100 nvme_ctrl_set_dhchap_key (c , json_object_get_string (attr_obj ));
101101}
@@ -224,7 +224,7 @@ static void json_update_port(struct json_object *ctrl_array, nvme_ctrl_t c)
224224 json_object_new_string (value ));
225225 value = nvme_ctrl_get_dhchap_key (c );
226226 if (value )
227- json_object_object_add (port_obj , "dhchap_key " ,
227+ json_object_object_add (port_obj , "dhchap_ctrl_key " ,
228228 json_object_new_string (value ));
229229 JSON_INT_OPTION (cfg , port_obj , nr_io_queues , 0 );
230230 JSON_INT_OPTION (cfg , port_obj , nr_write_queues , 0 );
@@ -367,7 +367,7 @@ static void json_dump_ctrl(struct json_object *ctrl_array, nvme_ctrl_t c)
367367 json_object_new_string (value ));
368368 value = nvme_ctrl_get_dhchap_key (c );
369369 if (value )
370- json_object_object_add (ctrl_obj , "dhchap_key " ,
370+ json_object_object_add (ctrl_obj , "dhchap_ctrl_key " ,
371371 json_object_new_string (value ));
372372 JSON_INT_OPTION (cfg , ctrl_obj , nr_io_queues , 0 );
373373 JSON_INT_OPTION (cfg , ctrl_obj , nr_write_queues , 0 );
0 commit comments