Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Dec 12, 2023
1 parent 4f6d3a4 commit cdcd61f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 28 deletions.
10 changes: 0 additions & 10 deletions etc/sample_affinity_policy.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions etc/sample_profile.yaml

This file was deleted.

5 changes: 4 additions & 1 deletion provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ func (g *InstanceGroup) getInstances(ctx context.Context, initial bool) ([]serve

func (g *InstanceGroup) createInstance(ctx context.Context, index int) (string, error) {
spec := new(ExtCreateOpts)
copier.Copy(spec, &g.ServerSpec)
err := copier.Copy(spec, &g.ServerSpec)
if err != nil {
return "", err
}

spec.Name = fmt.Sprintf(g.ServerSpec.Name, index)
if spec.Metadata == nil {
Expand Down

0 comments on commit cdcd61f

Please sign in to comment.