[rhel7-branch 1/1] Fix invalid access to a name attribute on device name strings.

lucastadeu installerbot-noreply at redhat.com
Mon May 18 17:06:22 UTC 2015


From: Lucas Tadeu Teixeira <ltadeu at br.ibm.com>

The findActiveDevicesOnActionDisks method returns a list with the names
(strings) of the active devices. There is not a 'name' attribute to be
accessed.
---
 blivet/devicetree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 97dd6d4..8be855a 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -255,7 +255,7 @@ def _preProcessActions(self):
             else:
                 raise RuntimeError("partitions in use on disks with changes "
                                    "pending: %s" %
-                                   ",".join(p.name for p in problematic))
+                                   ",".join(problematic))
 
         log.info("resetting parted disks...")
         for device in self.devices:


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/b13d6f9e766f65b2c93c7ed6ba7fd89d8b4ada13


More information about the anaconda-patches mailing list