Skip to content

Commit

Permalink
check on SSH Key Update
Browse files Browse the repository at this point in the history
  • Loading branch information
uzaxirr committed Jun 19, 2024
1 parent 177d941 commit 69adb21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions civo/instances/resource_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,10 @@ func resourceInstanceUpdate(ctx context.Context, d *schema.ResourceData, m inter
return diag.Errorf("[ERR] updating initial_user is not supported")
}

if d.HasChange("sshkey_id") {
return diag.Errorf("[ERR] updating sshkey_id is not supported")
}

// if tags is declare we update the instance with the tags
if d.HasChange("tags") {
tfTags := d.Get("tags").(*schema.Set).List()
Expand Down

0 comments on commit 69adb21

Please sign in to comment.