Skip to content
Snippets Groups Projects
Commit 7f2b14ef authored by Florent Gluck's avatar Florent Gluck
Browse files

Fixed a newly introduced bug in vmcreds2csv where the separator character ';' was absent.

Bumped version to 1.8.10
parent 1ecaf484
Branches
Tags
No related merge requests found
......@@ -3,6 +3,7 @@ package cmdVM
import (
"os"
"fmt"
"strconv"
u "nexus-client/utils"
g "nexus-client/globals"
)
......@@ -62,7 +63,8 @@ func (cmd *Creds2csv)Run(args []string) int {
defer f.Close()
for _, vm := range vms {
_, err := fmt.Fprintln(f, vm.ID, g.CsvFieldSeparator, vm.Name, g.CsvFieldSeparator, vm.Port, g.CsvFieldSeparator, vm.Pwd)
sep := string(g.CsvFieldSeparator)
_, err := fmt.Fprintln(f, vm.ID.String()+sep+vm.Name+sep+strconv.Itoa(vm.Port)+sep+vm.Pwd)
if err != nil {
u.PrintlnErr("Error: "+err.Error())
return 1
......
......@@ -8,7 +8,7 @@ import (
const (
major = 1
minor = 8
bugfix = 9
bugfix = 10
)
type Version struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment