From 4fa9aa65f8b4ff3057223eaf8a1753db583668c8 Mon Sep 17 00:00:00 2001 From: bijayasharma Date: Mon, 13 Sep 2021 13:38:56 -0400 Subject: [PATCH] Fixed some typos and error message Change-Id: I640a00fda787339ba79350348d89a2922ee6a6ab --- krm-functions/cloud-init/main.go | 2 +- krm-functions/templater/README.md | 4 ++-- krm-functions/toolbox-virsh/README.md | 1 - krm-functions/toolbox/main_test.go | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/krm-functions/cloud-init/main.go b/krm-functions/cloud-init/main.go index 21d07ae10..3870093b7 100644 --- a/krm-functions/cloud-init/main.go +++ b/krm-functions/cloud-init/main.go @@ -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 } diff --git a/krm-functions/templater/README.md b/krm-functions/templater/README.md index 3805922c7..95363bb0e 100644 --- a/krm-functions/templater/README.md +++ b/krm-functions/templater/README.md @@ -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 diff --git a/krm-functions/toolbox-virsh/README.md b/krm-functions/toolbox-virsh/README.md index c015a40a8..12cb74640 100644 --- a/krm-functions/toolbox-virsh/README.md +++ b/krm-functions/toolbox-virsh/README.md @@ -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. - diff --git a/krm-functions/toolbox/main_test.go b/krm-functions/toolbox/main_test.go index a8ec8d6f3..6cca67454 100644 --- a/krm-functions/toolbox/main_test.go +++ b/krm-functions/toolbox/main_test.go @@ -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{