def _image_type(vda):
    out = __salt__['cmd.run']('qemu-img info {0}'.format(vda))
    if 'file format: qcow2' in out:
        return 'qcow2'
    else:
        return 'raw'


# TODO: this function is deprecated, should be merged and replaced
# with _disk_profile()
Detect what driver needs to be used for the given image
dataset/ETHPy150Open saltstack/salt/salt/modules/virt.py/_image_type