[rhel7-branch 1/1] Fix set size to partition in custom spoke

jkonecny12 installerbot-noreply at redhat.com
Thu Jun 18 15:15:39 UTC 2015


From: Jiri Konecny <jkonecny at redhat.com>

Setting size for custom partition was broken. Blivet now needs normal
string instead of unicode.

Related: rhbz#1196721
---
 pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
index f5c36e9..b97c9dd 100644
--- a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
+++ b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
@@ -74,7 +74,7 @@
 system_mountpoints = ["/dev", "/proc", "/run", "/sys"]
 
 def size_from_entry(entry):
-    size_text = entry.get_text().decode("utf-8").strip()
+    size_text = entry.get_text().strip()
     return size_from_input(size_text)
 
 def populate_mountpoint_store(store, used_mountpoints):


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/9cf93abe07ad99b3ddf83203e87b53d480d16c07


More information about the anaconda-patches mailing list