If the target is not among discovered, return [] instead of all discovered nodes for all targets (else: branch) Related: rhbz#752066 --- pyanaconda/storage/iscsi.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyanaconda/storage/iscsi.py b/pyanaconda/storage/iscsi.py index cef1d73..bcc41af 100644 --- a/pyanaconda/storage/iscsi.py +++ b/pyanaconda/storage/iscsi.py @@ -128,9 +128,9 @@ class iscsi(object): def active_nodes(self, target=None): """Nodes logged in to""" - if target and target in self.discovered_targets: + if target: return [node for (node, logged_in) in - self.discovered_targets[target] + self.discovered_targets.get(target, []) if logged_in] else: return [node for (node, logged_in) in -- 1.7.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list