[PATCH] nvmetcli: fix double ana groupid when save config

Guixin Liu kanie at linux.alibaba.com
Mon Oct 28 20:43:12 PDT 2024


There are two ana grpid in json file after save the config,
including ana group: "ana":{"grpid"}, and "ana_grpid", remove one,
still one can use both of them to set ana_grpid.

Signed-off-by: Guixin Liu <kanie at linux.alibaba.com>
---
 nvmet/nvme.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/nvmet/nvme.py b/nvmet/nvme.py
index 59efdb5..41b4845 100644
--- a/nvmet/nvme.py
+++ b/nvmet/nvme.py
@@ -626,7 +626,6 @@ class Namespace(CFSNode):
     def dump(self):
         d = super(Namespace, self).dump()
         d['nsid'] = self.nsid
-        d['ana_grpid'] = self.grpid
         return d
 
 
-- 
2.43.0




More information about the Linux-nvme mailing list