[PATCH 2/2] Use exported configshell symbols
Stephan Müller
stephan.mueller at phys.ethz.ch
Thu Oct 9 09:45:04 PDT 2025
Replace direct invocations of configshell internals with actually
exported symbols.
Signed-off-by: Stephan Müller <stephan.mueller at phys.ethz.ch>
---
nvmetcli | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/nvmetcli b/nvmetcli
index 433e4c4..fe8a58e 100755
--- a/nvmetcli
+++ b/nvmetcli
@@ -33,9 +33,9 @@ def ngiud_set(nguid):
return any(c in hexdigits and c != '0' for c in nguid)
-class UINode(configshell.node.ConfigNode):
+class UINode(configshell.ConfigNode):
def __init__(self, name, parent=None, cfnode=None, shell=None):
- configshell.node.ConfigNode.__init__(self, name, parent, shell)
+ configshell.ConfigNode.__init__(self, name, parent, shell)
self.cfnode = cfnode
if self.cfnode:
if self.cfnode.attr_groups:
@@ -704,7 +704,7 @@ def clear(unused):
def ls(unused):
- shell = configshell.shell.ConfigShell('~/.nvmetcli')
+ shell = configshell.ConfigShell('~/.nvmetcli')
UIRootNode(shell)
shell.run_cmdline("ls")
sys.exit(0)
@@ -737,7 +737,7 @@ def main():
return
try:
- shell = configshell.shell.ConfigShell('~/.nvmetcli')
+ shell = configshell.ConfigShell('~/.nvmetcli')
UIRootNode(shell)
except Exception as msg:
shell.log.error(str(msg))
--
2.39.5
More information about the Linux-nvme
mailing list