def __virtual__():
    return __salt__['config.get']('grafana_version', 1) == 2
Only load if grafana v2.0 is configured.
dataset/ETHPy150Open saltstack/salt/salt/states/grafana_datasource.py/__virtual__