Skip to content

Commit

Permalink
chore: fix typo (#1623)
Browse files Browse the repository at this point in the history
Signed-off-by: Amine Kherbouche <[email protected]>
  • Loading branch information
kaminek authored Dec 23, 2020
1 parent 8659abd commit 77bd64c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/namespaces/instance/v1/custom_server_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func instanceServerCreateRun(ctx context.Context, argsI interface{}) (i interfac
BootscriptID: args.BootscriptID,
})
if err != nil { // FIXME: isNotFoundError
return nil, fmt.Errorf("bootscript ID %s does not exists", args.BootscriptID)
return nil, fmt.Errorf("bootscript ID %s does not exist", args.BootscriptID)
}

serverReq.Bootscript = scw.StringPtr(args.BootscriptID)
Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/instance/v1/custom_user_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func userDataGetBuilder(c *core.Command) *core.Command {
if err != nil {
if resErr, ok := err.(*scw.ResponseError); ok {
if resErr.StatusCode == http.StatusNotFound {
return nil, fmt.Errorf("'%s' key does not exists", req.Key)
return nil, fmt.Errorf("'%s' key does not exist", req.Key)
}
}
return nil, err
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
🎲🎲🎲 EXIT CODE: 1 🎲🎲🎲
πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️
'happy' key does not exists
'happy' key does not exist
πŸŸ₯πŸŸ₯πŸŸ₯ JSON STDERR πŸŸ₯πŸŸ₯πŸŸ₯
{
"error": "'happy' key does not exists"
"error": "'happy' key does not exist"
}
2 changes: 1 addition & 1 deletion internal/namespaces/k8s/v1/custom_kubeconfig_uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func k8sKubeconfigUninstallRun(ctx context.Context, argsI interface{}) (i interf

// if the file does not exist, the cluster is not there
if _, err := os.Stat(kubeconfigPath); os.IsNotExist(err) {
return fmt.Sprintf("File %s does not exists.", kubeconfigPath), nil
return fmt.Sprintf("File %s does not exist.", kubeconfigPath), nil
}

existingKubeconfig, err := openAndUnmarshalKubeconfig(kubeconfigPath)
Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/registry/v1/custom_docker_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func registryDockerHelperGetRun(ctx context.Context, argsI interface{}) (i inter
}

if !serverFound {
return nil, fmt.Errorf("endpoint %s does not exists", serverURL)
return nil, fmt.Errorf("endpoint %s does not exist", serverURL)
}

client := core.ExtractClient(ctx)
Expand Down

0 comments on commit 77bd64c

Please sign in to comment.