neil / rpms / python-blivet

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