From d856bb28e06e7c436283e7c28c67601f6747cbc5 Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Sat, 29 Jan 2022 09:49:34 +0000 Subject: [PATCH] nvme_gw_server: rename tgt_cmd_args config to tgt_cmd_extra_args Signed-off-by: Mykola Golub --- nvme_gw.config | 2 +- nvme_gw_server.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nvme_gw.config b/nvme_gw.config index 2c8ab068..b67cdf3c 100644 --- a/nvme_gw.config +++ b/nvme_gw.config @@ -29,4 +29,4 @@ rpc_socket = /var/tmp/spdk.sock timeout = 60.0 log_level = ERROR conn_retries = 3 -tgt_cmd_args = +tgt_cmd_extra_args = diff --git a/nvme_gw_server.py b/nvme_gw_server.py index d09572ca..93e2af6b 100644 --- a/nvme_gw_server.py +++ b/nvme_gw_server.py @@ -47,11 +47,12 @@ def start_spdk(self): spdk_tgt = self.nvme_config.get("config", "spdk_tgt") spdk_cmd = os.path.join(spdk_path, spdk_tgt) spdk_rpc_socket = self.nvme_config.get("spdk", "rpc_socket") - spdk_tgt_cmd_args = self.nvme_config.get("spdk", "tgt_cmd_args") + spdk_tgt_cmd_extra_args = self.nvme_config.get("spdk", + "tgt_cmd_extra_args") cmd = [spdk_cmd, "-u", "-r", spdk_rpc_socket] - if spdk_tgt_cmd_args: - cmd += shlex.split(spdk_tgt_cmd_args) + if spdk_tgt_cmd_extra_args: + cmd += shlex.split(spdk_tgt_cmd_extra_args) self.logger.info(f"Starting {' '.join(cmd)}") try: