[blivet:master 8/9] Set device.format in else block of try/except/else.
mulhern
amulhern at redhat.com
Wed Apr 23 21:49:32 UTC 2014
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devicetree.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 8a52fcf..a5e59be 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1226,6 +1226,8 @@ class DeviceTree(object):
except InvalidDiskLabelError:
log.warning("disklabel detected but not usable on %s",
device.name)
+ else:
+ device.format = format
return
# we're going to pass the "best" disklabel type into the DiskLabel
--
1.8.3.1
More information about the anaconda-patches
mailing list