Blob Blame History Raw
commit a3182301b10f1a2be0f26d9d6204021a4b8deac5
Author: Andy Grover <agrover@redhat.com>
Date:   Tue Nov 4 11:33:40 2014 -0800

    Fix issue with sessions detail command
    
    Do not reference the backstore, access the plugin field off the so
    directly. This is a regression introduced with the backstore removal
    changes a while back.
    
    Signed-off-by: Andy Grover <agrover@redhat.com>

diff --git a/targetcli/ui_root.py b/targetcli/ui_root.py
index ac60133..472d6e0 100644
--- a/targetcli/ui_root.py
+++ b/targetcli/ui_root.py
@@ -190,7 +190,7 @@ class UIRoot(UINode):
                                  base_steps + 1)
 
                 for mlun in acl.mapped_luns:
-                    plugin = mlun.tpg_lun.storage_object.backstore.plugin
+                    plugin = mlun.tpg_lun.storage_object.plugin
                     name = mlun.tpg_lun.storage_object.name
                     if mlun.write_protect:
                         mode = "r"