diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-10 10:25:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-10 10:25:04 +0000 |
commit | 8622cbe476ee19b12d6d4ea77250146d5cb8717f (patch) | |
tree | 06a46583880489d4fba8f2f5c4450a23c33f58cc /stafd.py | |
parent | Adding upstream version 2.3. (diff) | |
download | nvme-stas-upstream.tar.xz nvme-stas-upstream.zip |
Adding upstream version 2.3.1.upstream/2.3.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'stafd.py')
-rwxr-xr-x | stafd.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -88,7 +88,7 @@ if __name__ == '__main__': return STAF.tron @tron.setter - def tron(self, value): # pylint: disable=no-self-use + def tron(self, value): '''@brief Set Trace ON property''' STAF.tron = value @@ -108,21 +108,21 @@ if __name__ == '__main__': info.update(STAF.info()) return json.dumps(info) - def controller_info( # pylint: disable=no-self-use,too-many-arguments + 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 = STAF.get_controller(transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn) return json.dumps(controller.info()) if controller else '{}' - def get_log_pages( # pylint: disable=no-self-use,too-many-arguments + def get_log_pages( # pylint: disable=too-many-arguments self, transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn ) -> list: '''@brief D-Bus method used to retrieve the discovery log pages from one controller''' controller = STAF.get_controller(transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn) return controller.log_pages() if controller else list() - def get_all_log_pages(self, detailed) -> str: # pylint: disable=no-self-use + def get_all_log_pages(self, detailed) -> str: '''@brief D-Bus method used to retrieve the discovery log pages from all controllers''' log_pages = list() for controller in STAF.get_controllers(): @@ -134,7 +134,7 @@ if __name__ == '__main__': ) return json.dumps(log_pages) - def list_controllers(self, detailed) -> list: # pylint: disable=no-self-use + def list_controllers(self, detailed) -> list: '''@brief Return the list of discovery controller IDs''' return [ controller.details() if detailed else controller.controller_id_dict() |