summaryrefslogtreecommitdiffstats
path: root/stacctl.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-06 07:52:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-06 07:52:00 +0000
commit9a81a6cf9f75a764ad8b32bd1fc4ee64e200f172 (patch)
treebffae7d405fb77e945d668d2269b2359686ceb3e /stacctl.py
parentReleasing debian version 2.3~rc2-1. (diff)
downloadnvme-stas-9a81a6cf9f75a764ad8b32bd1fc4ee64e200f172.tar.xz
nvme-stas-9a81a6cf9f75a764ad8b32bd1fc4ee64e200f172.zip
Merging upstream version 2.3~rc3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'stacctl.py')
-rwxr-xr-xstacctl.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/stacctl.py b/stacctl.py
index 29e3e9a..9375af4 100755
--- a/stacctl.py
+++ b/stacctl.py
@@ -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))