The minsize string needs to be explicitly converted to an int before it can be used in a %d format. --- blivet/formats/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py index 8358144..4072870 100644 --- a/blivet/formats/fs.py +++ b/blivet/formats/fs.py @@ -1384,7 +1384,7 @@ class NTFS(FS): continue try: # ntfsresize uses SI unit prefixes - minSize = Size(spec="%d mb" % l.split(":")[1].strip()) + minSize = Size(spec="%d mb" % int(l.split(":")[1].strip())) except (IndexError, ValueError) as e: minSize = None log.warning("Unable to parse output for minimum size on %s: %s" %(self.device, e))
On Mon, 2014-02-03 at 13:11 +0100, David Shea wrote:
The minsize string needs to be explicitly converted to an int before it can be used in a %d format.
blivet/formats/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py index 8358144..4072870 100644 --- a/blivet/formats/fs.py +++ b/blivet/formats/fs.py @@ -1384,7 +1384,7 @@ class NTFS(FS): continue try: # ntfsresize uses SI unit prefixes
minSize = Size(spec="%d mb" % l.split(":")[1].strip())
minSize = Size(spec="%d mb" % int(l.split(":")[1].strip())) except (IndexError, ValueError) as e: minSize = None log.warning("Unable to parse output for minimum size on %s: %s" %(self.device, e))
ACK.
anaconda-patches@lists.fedorahosted.org