Skip to content

Commit

Permalink
Small internal linter fix to instance resource (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
karencfv authored Mar 4, 2024
1 parent ceaa457 commit 2e31c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/resource_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (r *instanceResource) Create(ctx context.Context, req resource.CreateReques
}

// TODO: Double check we're not triggering the default "add all keys" behaviour
sshKeys, diags := newSSHKeysOnCreate(ctx, r.client, plan.SSHPublicKeys)
sshKeys, diags := newSSHKeysOnCreate(plan.SSHPublicKeys)
resp.Diagnostics.Append(diags...)
if resp.Diagnostics.HasError() {
return
Expand Down Expand Up @@ -939,7 +939,7 @@ func newDiskAttachmentsOnCreate(ctx context.Context, client *oxide.Client, diskI
return disks, diags
}

func newSSHKeysOnCreate(ctx context.Context, client *oxide.Client, sshKeyIDs types.Set) ([]oxide.NameOrId, diag.Diagnostics) {
func newSSHKeysOnCreate(sshKeyIDs types.Set) ([]oxide.NameOrId, diag.Diagnostics) {
var diags diag.Diagnostics
var sshKeys = []oxide.NameOrId{}
for _, sshKeyID := range sshKeyIDs.Elements() {
Expand Down

0 comments on commit 2e31c95

Please sign in to comment.