def set_workloads(self, workloads):
        self.workloads = workloads
        self._update_config()
        if 'solr' in self.workloads:
            self.__generate_server_xml()
        if self.workloads in 'graph':
            (node_ip, _) = self.network_interfaces['binary']
            conf_file = os.path.join(self.get_path(), 'resources', 'dse', 'conf', 'dse.yaml')
            with open(conf_file, 'r') as f:
                data = yaml.load(f)
            graph_options = data['graph']
            graph_options['gremlin_server']['host'] = node_ip
            self.set_dse_configuration_options({'graph' : graph_options})
            self.__update_gremlin_config_yaml()
        if 'dsefs' in self.workloads:
            dsefs_options = {'dsefs_options' : {'enabled': 'true',
                                                'work_dir': os.path.join(self.get_path(), 'dsefs'),
                                                'data_directories': [{'dir': os.path.join(self.get_path(), 'dsefs', 'data')}]}}
            self.set_dse_configuration_options(dsefs_options)
        if 'spark' in self.workloads:
            self._update_spark_env()
dataset/ETHPy150Open pcmanus/ccm/ccmlib/dse_node.py/DseNode.set_workloads/swapped operands of `in`