[FIX] Serialization of Set failed

Converts the input to the method that deploys nodes to a list, to
protect against a set being used as input, which leads to a problem when
serializing the data in node filter passed to the Drydock client.

Change-Id: I6a5a0ec0ea9ed09b1911c462fec9dc3793dd1c26
This commit is contained in:
Bryan Strassner 2018-09-12 11:32:19 -05:00
parent 37429bbbc3
commit 321b33b2c3
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ class DrydockNodesOperator(DrydockBaseOperator):
Returns a QueryTaskResult object
"""
LOG.info("Group %s is deploying nodes", group.name)
self.node_filter = gen_node_name_filter(successful_prepared_nodes)
s_nodes = list(successful_prepared_nodes)
self.node_filter = gen_node_name_filter(s_nodes)
task_result = self._execute_task('deploy_nodes',
self.dep_interval,
self.dep_timeout)