Skip to content

Commit

Permalink
Fix security group filters
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-toa committed Jun 21, 2024
1 parent 4e02520 commit 00ac4cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions builder/common/step_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ func buildSecurityGroupFilters(input map[string]string) oscgo.FiltersSecurityGro
filterValue := []string{v}

switch name := k; name {
case "account_ids":
filters.AccountIds = &filterValue
case "security_group_ids":
filters.SecurityGroupIds = &filterValue
case "security_group_names":
Expand Down
2 changes: 1 addition & 1 deletion builder/common/step_update_omi.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (s *StepUpdateOMIAttributes) Run(_ context.Context, state multistep.StateBa
}

updateImageRequest := oscgo.UpdateImageRequest{
PermissionsToLaunch: oscgo.PermissionsOnResourceCreation{
PermissionsToLaunch: &oscgo.PermissionsOnResourceCreation{
Additions: &oscgo.PermissionsOnResource{
AccountIds: &s.AccountIds,
GlobalPermission: &s.GlobalPermission,
Expand Down

0 comments on commit 00ac4cc

Please sign in to comment.