summaryrefslogtreecommitdiffstats
path: root/storage/deviceaction.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-03-03 00:06:09 -0600
committerDavid Lehman <dlehman@redhat.com>2009-03-03 00:06:09 -0600
commit3579f254aa947d80b026d79482d1fd27f95ba180 (patch)
tree16c788b2524f75702add9639c1c2096505829208 /storage/deviceaction.py
parentd7a4ba3ff94cb0d9228ad20bd23b4be909350433 (diff)
downloadanaconda-3579f254aa947d80b026d79482d1fd27f95ba180.tar.gz
anaconda-3579f254aa947d80b026d79482d1fd27f95ba180.tar.xz
anaconda-3579f254aa947d80b026d79482d1fd27f95ba180.zip
Use currentSize in ActionResizeDevice ctor to get actual physical size.
Diffstat (limited to 'storage/deviceaction.py')
-rw-r--r--storage/deviceaction.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/deviceaction.py b/storage/deviceaction.py
index b76bb8fa3..af263f0fa 100644
--- a/storage/deviceaction.py
+++ b/storage/deviceaction.py
@@ -220,7 +220,7 @@ class ActionResizeDevice(DeviceAction):
obj = ACTION_OBJECT_DEVICE
def __init__(self, device, newsize):
- if device.size == newsize:
+ if device.currentSize == newsize:
raise ValueError("new size same as old size")
if not device.resizable: