mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
Fixes from make codespell
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@@ -76,7 +76,7 @@ func WaitContainerDocker(w http.ResponseWriter, r *http.Request) {
|
||||
exitCode, err := waitDockerCondition(ctx, name, interval, condition)
|
||||
msg := ""
|
||||
if err != nil {
|
||||
logrus.Errorf("error while waiting on condtion: %q", err)
|
||||
logrus.Errorf("error while waiting on condition: %q", err)
|
||||
msg = err.Error()
|
||||
}
|
||||
responseData := handlers.ContainerWaitOKBody{
|
||||
|
||||
@@ -428,7 +428,7 @@ func readConfigMapFromFile(r io.Reader) (v1.ConfigMap, error) {
|
||||
return cm, nil
|
||||
}
|
||||
|
||||
// splitMultiDocYAML reads mutiple documents in a YAML file and
|
||||
// splitMultiDocYAML reads multiple documents in a YAML file and
|
||||
// returns them as a list.
|
||||
func splitMultiDocYAML(yamlContent []byte) ([][]byte, error) {
|
||||
var documentList [][]byte
|
||||
@@ -471,7 +471,7 @@ func getKubeKind(obj []byte) (string, error) {
|
||||
}
|
||||
|
||||
// sortKubeKinds adds the correct creation order for the kube kinds.
|
||||
// Any pod dependecy will be created first like volumes, secrets, etc.
|
||||
// Any pod dependency will be created first like volumes, secrets, etc.
|
||||
func sortKubeKinds(documentList [][]byte) ([][]byte, error) {
|
||||
var sortedDocumentList [][]byte
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ func Decompress(localPath, uncompressedPath string) error {
|
||||
|
||||
// Will error out if file without .xz already exists
|
||||
// Maybe extracting then renameing is a good idea here..
|
||||
// depends on xz: not pre-installed on mac, so it becomes a brew dependecy
|
||||
// depends on xz: not pre-installed on mac, so it becomes a brew dependency
|
||||
func decompressXZ(src string, output io.Writer) error {
|
||||
fmt.Println("Extracting compressed file")
|
||||
cmd := exec.Command("xzcat", "-k", src)
|
||||
|
||||
@@ -56,7 +56,7 @@ func ToPodGen(ctx context.Context, podName string, podYAML *v1.PodTemplateSpec)
|
||||
}
|
||||
p.DNSServer = servers
|
||||
}
|
||||
// search domans
|
||||
// search domains
|
||||
if domains := dnsConfig.Searches; len(domains) > 0 {
|
||||
p.DNSSearch = domains
|
||||
}
|
||||
|
||||
@@ -199,8 +199,8 @@ func TestEscapeSystemdArguments(t *testing.T) {
|
||||
[]string{"foo", `"command with backslash \\"`},
|
||||
},
|
||||
{
|
||||
[]string{"foo", `command with two backslashs \\`},
|
||||
[]string{"foo", `"command with two backslashs \\\\"`},
|
||||
[]string{"foo", `command with two backslashes \\`},
|
||||
[]string{"foo", `"command with two backslashes \\\\"`},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ func PrepareFilters(r *http.Request) (*map[string][]string, error) {
|
||||
return &filterMap, nil
|
||||
}
|
||||
|
||||
// MatchLabelFilters matches labels and returs true if they are valid
|
||||
// MatchLabelFilters matches labels and returns true if they are valid
|
||||
func MatchLabelFilters(filterValues []string, labels map[string]string) bool {
|
||||
outer:
|
||||
for _, filterValue := range filterValues {
|
||||
|
||||
Reference in New Issue
Block a user