Skip to content
Snippets Groups Projects
Commit 651ddef0 authored by Mauro S. M. Rodrigues's avatar Mauro S. M. Rodrigues Committed by Christoph Hellwig
Browse files

nvmetcli: fix Port and Host operations in shell


Operations against Port and Host entities are broken. When performing
operations like the follow:

/ports> create 1
/hosts> create 1

nvmetcli fails, saying the object doesn't have the attribute we're
trying to access, for instance:
'module' object has no attribute 'Port'

This patch fixes this issue by importing the classes Port and Host in
nvmet/__init__.py which was forgotten during the follow change:

a21ebd54 ("nvmetcli: Fix nvmet import").

Tested-by: default avatarGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Tested-by: default avatarSagi Grimberg <sagi@grimberg.m>
Signed-off-by: default avatarMauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent ec76995c
No related branches found
No related tags found
No related merge requests found
from .nvme import Root, Subsystem, Namespace
from .nvme import Root, Subsystem, Namespace, Port, Host
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment