scripts/nvmf_perf: fix enable_sar option

Wrong key was used to assign value from json config.

Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Change-Id: I3814b385824b435ae39cdf0a47cca42735873e86
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15757
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Kamil Godzwon <kamilx.godzwon@intel.com>
Reviewed-by: Jaroslaw Chachulski <jaroslawx.chachulski@intel.com>
Reviewed-by: Michal Berger <michal.berger@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Karol Latecki 2022-12-02 09:09:24 +01:00 committed by Konrad Sztyber
parent 35156582a7
commit a6f6454073

View File

@ -411,7 +411,7 @@ class Target(Server):
if "enable_pm" in target_config:
self.enable_pm = target_config["enable_pm"]
if "enable_sar" in target_config:
self.enable_sar = target_config["sar_settings"]
self.enable_sar = target_config["enable_sar"]
if "enable_pcm" in target_config:
self.enable_pcm = target_config["enable_pcm"]
if "enable_bandwidth" in target_config: