def _get_recommended_cluster_configs(self):
        """Method recommends dfs_replication for cluster.

        :return: recommended value of dfs_replication.
        """
        if not self._can_be_recommended(['dfs.replication']):
            return {}
        datanode_count = 0
        datanode_proc_name = self.get_datanode_name()
        for ng in self.cluster.node_groups:
            if ng.node_processes in datanode_proc_name:
                datanode_count += ng.count
        replica = 'dfs.replication'
        recommended_value = self._get_default_config_value(replica)
        if recommended_value:
            return {replica: min(recommended_value, datanode_count)}
        else:
            return {}
dataset/ETHPy150Open openstack/sahara/sahara/plugins/recommendations_utils.py/HadoopAutoConfigsProvider._get_recommended_cluster_configs/swapped operands of `in`