Use resources.like filter in openstack example
Change-Id: I41c6eeabea0f93816ac060939e8ad94ba41e8829
This commit is contained in:
parent
206bfcb347
commit
7f3955e909
@ -41,9 +41,9 @@ def main():
|
||||
|
||||
def prepare_nodes(nodes_count):
|
||||
resources = cr.create('nodes', 'templates/nodes', {"count": nodes_count})
|
||||
nodes = [x for x in resources if x.name.startswith('node')]
|
||||
nodes = resources.like('node')
|
||||
resources = cr.create('nodes_network', 'templates/nodes_network', {"count": nodes_count})
|
||||
nodes_sdn = [x for x in resources if x.name.startswith('node')]
|
||||
nodes_sdn = resources.like('node')
|
||||
r = {}
|
||||
|
||||
for node, node_sdn in zip(nodes, nodes_sdn):
|
||||
|
Loading…
x
Reference in New Issue
Block a user