From b1de338dc0d6bd58fc987930b7b97e99b1130afd Mon Sep 17 00:00:00 2001
From: Radek Vykydal <rvykydal@redhat.com>
Date: Fri, 19 Sep 2014 14:08:50 +0200
Subject: [PATCH 2/2] iscsi: fix root argument being overriden by local
variable (#1144463)
Resolves: rhbz#1144463
introduced by commit 5b39c90ae582a8fb008c3633954a33b583
---
blivet/iscsi.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blivet/iscsi.py b/blivet/iscsi.py
index eb640cd..7ec0d3c 100644
--- a/blivet/iscsi.py
+++ b/blivet/iscsi.py
@@ -365,13 +365,13 @@ class iscsi(object):
return
# set iscsi nodes to autostart
- root = storage.rootDevice
+ rootdev = storage.rootDevice
for node in self.active_nodes():
autostart = True
disks = self.getNodeDisks(node, storage)
for disk in disks:
# nodes used for root get started by the initrd
- if root.dependsOn(disk):
+ if rootdev.dependsOn(disk):
autostart = False
if autostart:
--
1.9.3