# NOTE(johannes): root_gb is allowed to be 0 for legacy reasons
# since libvirt interpreted the value differently than other
# drivers. A value of 0 means don't check size.
root_gb = instance_type['root_gb']
if root_gb:
if int(image.get('size') or 0) > root_gb * (1024 ** 3): raise exception.FlavorDiskTooSmall()
if int(image.get('min_disk') or 0) > root_gb: raise exception.FlavorDiskTooSmall()
It seems like flavor is still the natural place to have this (as opposed to a global disable.
Hmmm actually it won't:
# NOTE(johannes): root_gb is allowed to be 0 for legacy reasons type['root_ gb'] get('size' ) or 0) > root_gb * (1024 ** 3):
raise exception. FlavorDiskTooSm all()
# since libvirt interpreted the value differently than other
# drivers. A value of 0 means don't check size.
root_gb = instance_
if root_gb:
if int(image.
if int(image. get('min_ disk') or 0) > root_gb:
raise exception. FlavorDiskTooSm all()
It seems like flavor is still the natural place to have this (as opposed to a global disable.