def slaves(self, fltr=""):
        """Returns those slaves that have `fltr` in their 'id'

        :param fltr: filter string
        :type fltr: str
        :returns: Those slaves that have `fltr` in their 'id'
        :rtype: [Slave]
        """

        return [self._slave_obj(slave)
                for slave in self.state()['slaves']
                if slave['id'] in fltr]
dataset/ETHPy150Open dcos/dcos-cli/dcos/mesos.py/Master.slaves/swapped operands of `in`