[PATCH 2/5] Allow calls to suggestDeviceName with only a prefix argument.
David Lehman
dlehman at redhat.com
Fri Mar 22 16:48:13 UTC 2013
Prior to this fix, you'd end up with a trailing underscore in the name.
---
blivet/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/__init__.py b/blivet/__init__.py
index 5da572c..cdb4bec 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -1302,7 +1302,7 @@ class Blivet(object):
elif swap:
body = "swap"
- if prefix:
+ if prefix and body:
body = "_" + body
template = self.safeDeviceName(prefix + body)
--
1.8.1.4
More information about the anaconda-patches
mailing list