corrected bug in resize
authorPaul Tonelli <paul.tonelli@logilab.fr>
Fri, 08 Mar 2013 15:16:08 +0100
changeset 51 555bcf9abc33
parent 50 7e6fad327f58
child 52 543be5448292
corrected bug in resize
_states/tmp_state.py
--- a/_states/tmp_state.py	Fri Mar 08 12:12:59 2013 +0100
+++ b/_states/tmp_state.py	Fri Mar 08 15:16:08 2013 +0100
@@ -131,7 +131,7 @@
             ret['result'] = False
             ret['comment'] = 'Not enough free space'
             return ret
-    if minimum_size < abs(change_value): #cnange size to what asked
+    if minimum_size < new_size: #change size to what asked
         additionnal_flags = ' ' + str(new_size / block_size)
     else: #minimise to min possible
         minimize = '-M '