Skip to content

Commit

Permalink
fix(hatchery:openstack): set security groups (#6575)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlt committed Jun 20, 2023
1 parent 827a7a3 commit 070d3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/hatchery/openstack/spawn.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 070d3f7

Please sign in to comment.