def get(instance):
    with instance.remote() as r:
        name = r.execute_command('cat /etc/*-release', run_as_root=True)[1]
        for d in get_all():
            if name in d.name:
                return d
dataset/ETHPy150Open openstack/sahara/sahara/plugins/mapr/domain/distro.py/get/swapped operands of `in`