Merge "Fixed some typos and error message"

This commit is contained in:
Zuul 2021-09-23 05:34:46 +00:00 committed by Gerrit Code Review
commit 96d27cd710
4 changed files with 4 additions and 5 deletions

View File

@ -62,7 +62,7 @@ func docFromRNode(rnode *yaml.RNode) (document.Document, error) {
return nil, err
}
if len(collection) == 0 {
return nil, errors.New("Error while converting RNode to Document: empty document bundle")
return nil, errors.New("error while converting RNode to Document: empty document bundle")
}
return collection[0], nil
}

View File

@ -66,6 +66,6 @@ following structure.
bootMACAddress: {{ .macAddress }}
{{ end -}}
`values` defines the substituion value as Map.
`template` defines the template with placeholders to substitue the value from the
`values` defines the substitution value as Map.
`template` defines the template with placeholders to substitute the value from the
values Map

View File

@ -1,4 +1,3 @@
# toolbox-virsh image
This image based on the airshipctl toolbox krm-function. It allows to execute libvirt-client(virsh) inside a container.

View File

@ -74,7 +74,7 @@ func TestCmdRun(t *testing.T) {
},
},
{
name: "WorkDir that doesnt' exist",
name: "WorkDir that doesn't exist",
workdir: "foobar",
errContains: "open foobar/my-script.sh: no such file or directory",
configMap: &v1.ConfigMap{