From 070d3f7e60824776db6f9635d024159aca2672b3 Mon Sep 17 00:00:00 2001 From: Richard LT Date: Tue, 20 Jun 2023 11:46:52 +0200 Subject: [PATCH] fix(hatchery:openstack): set security groups (#6575) --- engine/hatchery/openstack/spawn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/hatchery/openstack/spawn.go b/engine/hatchery/openstack/spawn.go index 5db1a763f8..db6cb13c3c 100644 --- a/engine/hatchery/openstack/spawn.go +++ b/engine/hatchery/openstack/spawn.go @@ -147,10 +147,10 @@ func (h *HatcheryOpenstack) SpawnWorker(ctx context.Context, spawnArgs hatchery. UserData: []byte(udata64), Networks: networks, } - r := servers.Create(h.openstackClient, opts) if len(h.Config.DefaultSecurityGroups) > 0 { opts.SecurityGroups = h.Config.DefaultSecurityGroups } + r := servers.Create(h.openstackClient, opts) server, err := r.Extract() if err != nil {