Blame SOURCES/fix-session-detail.patch

49dea1
commit a3182301b10f1a2be0f26d9d6204021a4b8deac5
49dea1
Author: Andy Grover <agrover@redhat.com>
49dea1
Date:   Tue Nov 4 11:33:40 2014 -0800
49dea1
49dea1
    Fix issue with sessions detail command
49dea1
    
49dea1
    Do not reference the backstore, access the plugin field off the so
49dea1
    directly. This is a regression introduced with the backstore removal
49dea1
    changes a while back.
49dea1
    
49dea1
    Signed-off-by: Andy Grover <agrover@redhat.com>
49dea1
49dea1
diff --git a/targetcli/ui_root.py b/targetcli/ui_root.py
49dea1
index ac60133..472d6e0 100644
49dea1
--- a/targetcli/ui_root.py
49dea1
+++ b/targetcli/ui_root.py
49dea1
@@ -190,7 +190,7 @@ class UIRoot(UINode):
49dea1
                                  base_steps + 1)
49dea1
 
49dea1
                 for mlun in acl.mapped_luns:
49dea1
-                    plugin = mlun.tpg_lun.storage_object.backstore.plugin
49dea1
+                    plugin = mlun.tpg_lun.storage_object.plugin
49dea1
                     name = mlun.tpg_lun.storage_object.name
49dea1
                     if mlun.write_protect:
49dea1
                         mode = "r"