Fix parted size attribute renaming

Change-Id: I2216e6c0cffd4a46aad6cafa075456ea817b3d3d
This commit is contained in:
Oleksandr Berezovskyi 2016-03-29 14:13:20 +03:00
parent 9a9a481f00
commit f94cf5ad14
1 changed files with 2 additions and 2 deletions

View File

@ -391,12 +391,12 @@ class PolicyPartitioner(object):
% disks[0].get('name'))
# It's safer to understate the physical disk size
disk_size_mib = utils.B2MiB(disk_size_bytes, ceil=False)
if parted.size > disk_size_mib:
if parted.disk_size > disk_size_mib:
raise errors.NotEnoughSpaceError(
'Partition scheme for: %(disk)s exceeds the size of the '
'disk. Scheme size is %(scheme_size)s MiB, and disk size '
'is %(disk_size)s MiB.' % {
'disk': parted.name, 'scheme_size': parted.size,
'disk': parted.name, 'scheme_size': parted.disk_size,
'disk_size': disk_size_mib})
def _handle_clean(self):