summaryrefslogtreecommitdiffstats
path: root/stacd.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-10 10:25:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-10 10:25:04 +0000
commit8622cbe476ee19b12d6d4ea77250146d5cb8717f (patch)
tree06a46583880489d4fba8f2f5c4450a23c33f58cc /stacd.py
parentAdding upstream version 2.3. (diff)
downloadnvme-stas-8622cbe476ee19b12d6d4ea77250146d5cb8717f.tar.xz
nvme-stas-8622cbe476ee19b12d6d4ea77250146d5cb8717f.zip
Adding upstream version 2.3.1.upstream/2.3.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xstacd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/stacd.py b/stacd.py
index b13904a..60bcab2 100755
--- a/stacd.py
+++ b/stacd.py
@@ -69,7 +69,7 @@ if __name__ == '__main__':
return STAC.tron
@tron.setter
- def tron(self, value): # pylint: disable=no-self-use
+ def tron(self, value):
'''@brief Set Trace ON property'''
STAC.tron = value
@@ -89,14 +89,14 @@ if __name__ == '__main__':
info.update(STAC.info())
return json.dumps(info)
- def controller_info( # pylint: disable=too-many-arguments,no-self-use
+ def controller_info( # pylint: disable=too-many-arguments
self, transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn
) -> str:
'''@brief D-Bus method used to return information about a controller'''
controller = STAC.get_controller(transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn)
return json.dumps(controller.info()) if controller else '{}'
- def list_controllers(self, detailed) -> list: # pylint: disable=no-self-use
+ def list_controllers(self, detailed) -> list:
'''@brief Return the list of I/O controller IDs'''
return [
controller.details() if detailed else controller.controller_id_dict()