Skip to content

Commit 0bf294e

Browse files
Martin Belangerigaw
authored andcommitted
python: fix typo in nvmf_discovery_log
When adding the trtype parser code 'val' is used instead 'tsas'. Use the correct variable. Fixes: 86ceb42 ("nvme.i: decode 'tsas' discovery log page entry") Signed-off-by: Martin Belanger <[email protected]>
1 parent eff0ffe commit 0bf294e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libnvme/nvme.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ PyObject *hostid_from_file();
375375
break;
376376
}
377377
PyDict_SetItemStringDecRef(tsas, "cms", val);
378-
PyDict_SetItemStringDecRef(entry, "tsas", val);
378+
PyDict_SetItemStringDecRef(entry, "tsas", tsas);
379379
}
380380

381381
val = PyLong_FromLong(e->portid);

0 commit comments

Comments
 (0)