summaryrefslogtreecommitdiff
path: root/targetcli
diff options
context:
space:
mode:
authorKenjiro Nakayama <nakayamakenjiro@gmail.com>2017-09-15 22:45:18 +0900
committerKenjiro Nakayama <nakayamakenjiro@gmail.com>2017-09-16 00:24:49 +0900
commitca623fc97679ad12348169005d19749a034d3c22 (patch)
treee46ab4f2a1d66875b75543fbbb525f353f5ebbd3 /targetcli
parentee32a2493eaccd9352cc596b9e3387960cca48fc (diff)
downloadtargetcli-ca623fc97679ad12348169005d19749a034d3c22.tar.gz
skip refreshing user backed storage object when it is null
Diffstat (limited to 'targetcli')
-rw-r--r--targetcli/ui_backstore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/targetcli/ui_backstore.py b/targetcli/ui_backstore.py
index 83673a0..a303487 100644
--- a/targetcli/ui_backstore.py
+++ b/targetcli/ui_backstore.py
@@ -559,7 +559,7 @@ class UIUserBackedBackstore(UIBackstore):
def refresh(self):
self._children = set([])
for so in RTSRoot().storage_objects:
- if so.plugin == 'user':
+ if so.plugin == 'user' and so.config:
idx = so.config.find("/")
handler = so.config[:idx]
if handler == self.handler: