Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: Fix spelling errors found by codespell #1777

Merged
merged 1 commit into from
Mar 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/incus_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (r *ProtocolIncus) GetInstanceFull(name string) (*api.InstanceFull, string,
instance := api.InstanceFull{}

if !r.HasExtension("instance_get_full") {
// Backware compatibility.
// Backward compatibility.
ct, _, err := r.GetInstance(name)
if err != nil {
return nil, "", err
Expand Down
2 changes: 1 addition & 1 deletion client/incus_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func (r *ProtocolIncus) ApplyServerPreseed(config api.InitPreseed) error {
// Apply networks in the default project before other projects config applied (so that if the projects
// depend on a network in the default project they can have their config applied successfully).
for i := range config.Server.Networks {
// Populate default project if not specified for backwards compatbility with earlier
// Populate default project if not specified for backwards compatibility with earlier
// preseed dump files.
if config.Server.Networks[i].Project == "" {
config.Server.Networks[i].Project = api.ProjectDefaultName
Expand Down
2 changes: 1 addition & 1 deletion client/simplestreams_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (r *ProtocolSimpleStreams) GetImageFile(fingerprint string, req ImageFileRe

size, err := util.DownloadFileHash(context.TODO(), &httpClient, r.httpUserAgent, req.ProgressHandler, req.Canceler, filename, uri, hash, sha256.New(), target)
if err != nil {
// Handle cancelation
// Handle cancellation
if err.Error() == "net/http: request canceled" {
return -1, err
}
Expand Down