def apply_recommended_configs(self):
        """Method applies recommended configs for cluster and for all

        node_groups using conductor api.
        :return: None.
        """
        if self.scaling:
            # Validate cluster is not an old created cluster
            cluster_extra = self._get_cluster_extra()
            if cluster_extra not in 'auto-configured':
                # Don't configure
                return

        for ng in self.cluster.node_groups:
            self.apply_node_configs(ng)
        self.apply_cluster_configs()
        configs = list(self.cluster_configs_to_update.keys())
        configs.extend(list(self.node_configs_to_update.keys()))
        LOG.debug("Following configs were auto-configured: {configs}".format(
            configs=configs))
        self.finalize_autoconfiguration()
dataset/ETHPy150Open openstack/sahara/sahara/plugins/recommendations_utils.py/AutoConfigsProvider.apply_recommended_configs/swapped operands of `not in`