summaryrefslogtreecommitdiffstats
path: root/src/k8splugin/internal/utils.go
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-08-05 07:18:54 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-05 07:18:54 +0000
commit4798f0f660de48e43e79626685e8b28bac7f2615 (patch)
treeb02586dced53ffd2da2126df8add94f2e2c8048f /src/k8splugin/internal/utils.go
parent09dffa6d151b046a87edcb91a46449cabc66532c (diff)
parent233e1278e1eb3c9583497a5b4f5a5dd242ecf182 (diff)
Merge "Minor improvement to log statements"
Diffstat (limited to 'src/k8splugin/internal/utils.go')
-rw-r--r--src/k8splugin/internal/utils.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/k8splugin/internal/utils.go b/src/k8splugin/internal/utils.go
index 47a236c2..174f8e79 100644
--- a/src/k8splugin/internal/utils.go
+++ b/src/k8splugin/internal/utils.go
@@ -17,8 +17,8 @@ import (
"io/ioutil"
"log"
"os"
- "path/filepath"
"path"
+ "path/filepath"
"plugin"
"strings"
@@ -52,13 +52,11 @@ func DecodeYAML(path string, into runtime.Object) (runtime.Object, error) {
}
}
- log.Println("Reading YAML file")
rawBytes, err := ioutil.ReadFile(path)
if err != nil {
return nil, pkgerrors.Wrap(err, "Read YAML file error")
}
- log.Println("Decoding deployment YAML")
decode := scheme.Codecs.UniversalDeserializer().Decode
obj, _, err := decode(rawBytes, nil, into)
if err != nil {