diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-06 07:51:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-06 07:51:39 +0000 |
commit | 593ffd6b9dc008e81ed95579a0f56c49bf3e782f (patch) | |
tree | b3a10caf7583dc08b7beed1a329f3b65a1dffe33 /stacctl.py | |
parent | Adding upstream version 2.3~rc2. (diff) | |
download | nvme-stas-593ffd6b9dc008e81ed95579a0f56c49bf3e782f.tar.xz nvme-stas-593ffd6b9dc008e81ed95579a0f56c49bf3e782f.zip |
Adding upstream version 2.3~rc3.upstream/2.3_rc3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | stacctl.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -39,9 +39,10 @@ def _extract_cid(ctrl): ctrl['transport'], ctrl['traddr'], ctrl['trsvcid'], + ctrl['subsysnqn'], ctrl['host-traddr'], ctrl['host-iface'], - ctrl['subsysnqn'], + ctrl['host-nqn'], ) @@ -52,9 +53,9 @@ def status(args): # pylint: disable=unused-argument info = json.loads(iface.process_info()) info['controllers'] = iface.list_controllers(True) for controller in info['controllers']: - transport, traddr, trsvcid, host_traddr, host_iface, subsysnqn = _extract_cid(controller) + transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn = _extract_cid(controller) controller.update( - json.loads(iface.controller_info(transport, traddr, trsvcid, host_traddr, host_iface, subsysnqn)) + json.loads(iface.controller_info(transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn)) ) print(pprint.pformat(info, width=120)) |