[blivet-rhel7/master] get_loop_name shoud return an empty name if it isn't found (#980510)
Brian C. Lane
bcl at redhat.com
Wed Jan 14 18:20:25 UTC 2015
Callers expect a name or "" not an error.
Related: rhbz#980510
---
blivet/devicelibs/loop.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devicelibs/loop.py b/blivet/devicelibs/loop.py
index 661a32e..4270929 100644
--- a/blivet/devicelibs/loop.py
+++ b/blivet/devicelibs/loop.py
@@ -57,7 +57,7 @@ def get_loop_name(path):
entries = buf.splitlines()
if not entries:
- raise LoopError("No loop associated with %s" % (path))
+ return ""
first_entry = entries[0]
if len(entries) > 1:
--
1.9.3
More information about the anaconda-patches
mailing list