def get_job_properties(name, keys=['name', 'description']):
    """
    Return job details.

    Args:
        name (str): job name
        keys (list): list of property names to get
    """
    job = _get_job_proxy(name)
    if job:
        props = job.GetAll(UPSTARTJOB_IFACE,
                           dbus_interface=dbus.PROPERTIES_IFACE)
        for key in props.keys():
            if keys not in key:
                del props[key]
        return props
    else:
        return None
dataset/ETHPy150Open cloudify-cosmo/cloudify-manager/rest-service/manager_rest/upstartdbus.py/get_job_properties/swapped operands of `not in`