def device_exists(device=None):

    if not device:
        device = __salt__['grains.get']('fqdn')

    if find_device(device):
        return True
    return False
Check to see if a device already exists in Zenoss.
dataset/ETHPy150Open saltstack/salt/salt/modules/zenoss.py/device_exists