All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] nvmetcli: Fix Port and Host operations in shell
@ 2017-03-27 17:46 Mauro S. M. Rodrigues
  2017-03-27 17:46 ` [PATCH 2/3] nvmetcli: Fix Referral operation " Mauro S. M. Rodrigues
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Mauro S. M. Rodrigues @ 2017-03-27 17:46 UTC (permalink / raw)


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:

a21ebd54f0 ("nvmetcli: Fix nvmet import").

Tested-by: Guilherme G. Piccoli <gpiccoli at linux.vnet.ibm.com>
Signed-off-by: Mauro S. M. Rodrigues <maurosr at linux.vnet.ibm.com>
---
 nvmet/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nvmet/__init__.py b/nvmet/__init__.py
index a084151..9a0b51d 100644
--- a/nvmet/__init__.py
+++ b/nvmet/__init__.py
@@ -1 +1 @@
-from .nvme import Root, Subsystem, Namespace
+from .nvme import Root, Subsystem, Namespace, Port, Host
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-04-06  7:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-27 17:46 [PATCH 1/3] nvmetcli: Fix Port and Host operations in shell Mauro S. M. Rodrigues
2017-03-27 17:46 ` [PATCH 2/3] nvmetcli: Fix Referral operation " Mauro S. M. Rodrigues
2017-03-28 10:41   ` Sagi Grimberg
2017-03-30  8:27   ` Christoph Hellwig
2017-03-27 17:46 ` [PATCH 3/3] nvmetcli: Install nvmetcli executable in $PATH Mauro S. M. Rodrigues
2017-03-28 10:41   ` Sagi Grimberg
2017-03-30  8:28   ` Christoph Hellwig
2017-04-05 23:56     ` Mauro Rodrigues
2017-04-06  7:20       ` Christoph Hellwig
2017-03-28 10:40 ` [PATCH 1/3] nvmetcli: Fix Port and Host operations in shell Sagi Grimberg
2017-03-30  8:27 ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.