Skip to content

Commit a6a01bd

Browse files
brandon-paupore-sndkigaw
authored andcommitted
ocp: fix for power-state argument checking
Noticed this as part of supporting set-telemetry-profile, it seems that the power-state option is not being detected properly. With this fix the function is able to enter set_dssd_power_state when given the option or its alias. Signed-off-by: Brandon Paupore <brandon.paupore@wdc.com>
1 parent 283585a commit a6a01bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/ocp/ocp-nvme.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,7 @@ static int set_dssd_power_state_feature(int argc, char **argv, struct command *c
21432143
if (err)
21442144
return err;
21452145

2146-
if (argconfig_parse_seen(opts, "power state"))
2146+
if (argconfig_parse_seen(opts, "power-state"))
21472147
err = set_dssd_power_state(dev, nsid, fid, cfg.power_state,
21482148
cfg.save,
21492149
!argconfig_parse_seen(opts, "no-uuid"));

0 commit comments

Comments
 (0)