def __virtual__():
    if salt.utils.which('cpan'):
        return True
    return (False, 'Unable to locate cpan. Make sure it is installed and in the PATH.')
Only work on supported POSIX-like systems
dataset/ETHPy150Open saltstack/salt/salt/modules/cpan.py/__virtual__