This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
The following commit(s) were added to refs/heads/master by this push:
new e21dc82 output: fix lint issue to fix build failures
e21dc82 is described below
commit e21dc82c3477d8ee989a8825ea20da1f8f8de855
Author: Rohit Yadav <[email protected]>
AuthorDate: Mon Jul 2 13:26:30 2018 +0530
output: fix lint issue to fix build failures
Signed-off-by: Rohit Yadav <[email protected]>
---
cmd/output.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/output.go b/cmd/output.go
index 4a13286..c24d51d 100644
--- a/cmd/output.go
+++ b/cmd/output.go
@@ -28,7 +28,7 @@ import (
"strings"
)
-func printJson(response map[string]interface{}) {
+func printJSON(response map[string]interface{}) {
jsonOutput, err := json.MarshalIndent(response, "", " ")
if err != nil {
fmt.Println("Error during json marshalling:", err.Error())
@@ -113,7 +113,7 @@ func printCsv(response map[string]interface{}) {
}
if idx == 0 {
- for rk, _ := range row {
+ for rk := range row {
header = append(header, rk)
}
sort.Strings(header)
@@ -172,7 +172,7 @@ func printResult(outputType string, response
map[string]interface{}, filter []st
response = filterResponse(response, filter)
switch outputType {
case config.JSON:
- printJson(response)
+ printJSON(response)
case config.TABLE:
printTable(response)
case config.TEXT: