Skip to content
Snippets Groups Projects
Commit 71b6b590 authored by istmxrein's avatar istmxrein
Browse files

add feature to define multiple security groups

parent f26665c3
Branches
Tags
No related merge requests found
......@@ -23,7 +23,7 @@ def provision_server(
flavor_id=flavor.id,
image_id=image.id,
key_name=env.KEY_PAIR_NAME,
security_groups=[{"name": env.SECURITY_GROUP}],
security_groups=[{"name": group} for group in env.SECURITY_GROUPS.split()],
networks=[{"uuid": network.id}],
)
return conn.compute.wait_for_server(server, wait=600)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment