@staticmethod
def _is_booted_from_volume(instance, disk_mapping):
    'Determines whether the VM is booting from volume\n\n        Determines whether the disk mapping indicates that the VM\n        is booting from a volume.\n        '
    return ((not bool(instance.get('image_ref'))) or ('disk' not in disk_mapping))
Determines whether the VM is booting from volume

Determines whether the disk mapping indicates that the VM
is booting from a volume.
@staticmethod
def _is_booted_from_volume(instance, disk_mapping):
    'Determines whether the VM is booting from volume\n\n        Determines whether the disk mapping indicates that the VM\n        is booting from a volume.\n        '
    return ((not bool(instance.get('image_ref'))) or ('disk' not in disk_mapping))