diff options
author | Monty Taylor <mordred@inaugust.com> | 2017-09-21 17:15:16 -0500 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2017-09-21 17:19:26 -0500 |
commit | 7a519a0273a0317232fa62888b44dddd9805d81a (patch) | |
tree | cc394266294c2e855a433f75e45fedd83e98ceab /zuul | |
parent | db6550176248225c0e7f2beb6fc0db23f2b37d9e (diff) | |
download | zuul-7a519a0273a0317232fa62888b44dddd9805d81a.tar.gz |
Migrate node information to nodeset instead of nodes
Nodeset is the term now. For all the cases.
Change-Id: Ib58bdfa1744b2851ae6c6b79ece52600d905f53e
Diffstat (limited to 'zuul')
-rw-r--r-- | zuul/cmd/migrate.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zuul/cmd/migrate.py b/zuul/cmd/migrate.py index 05278aa75..1d0870d97 100644 --- a/zuul/cmd/migrate.py +++ b/zuul/cmd/migrate.py @@ -841,7 +841,10 @@ class Job: output['vars']['BUILD_TIMEOUT'] = str(timeout * 1000) if self.nodes: - output['nodes'] = self.getNodes() + if len(self.nodes) == 1: + output['nodeset'] = self.getNodes()[0] + else: + output['nodeset'] = dict(nodes=self.getNodes()) if expanded_projects: output['required-projects'] = list(set(expanded_projects)) |