diff options
| author | Andy Grover <andy@groveronline.com> | 2017-09-29 13:16:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-29 13:16:56 -0700 |
| commit | b3660b32441dfdac515d569cc31b14fd253ca616 (patch) | |
| tree | e46ab4f2a1d66875b75543fbbb525f353f5ebbd3 /targetcli | |
| parent | ee32a2493eaccd9352cc596b9e3387960cca48fc (diff) | |
| parent | ca623fc97679ad12348169005d19749a034d3c22 (diff) | |
| download | targetcli-b3660b32441dfdac515d569cc31b14fd253ca616.tar.gz | |
Merge pull request #93 from nak3/handle-nil-so
skip refreshing user backed storage object when it is null
Diffstat (limited to 'targetcli')
| -rw-r--r-- | targetcli/ui_backstore.py | 2 |
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: |
