8000 fix(cdsctl): manage empty values on metadata · ovh/cds@47153c0 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 47153c0

Browse files
yesnaultrichardlt
authored andcommitted
fix(cdsctl): manage empty values on metadata
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
1 parent 89a0dc0 commit 47153c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/cdsctl/admin_metadata.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,10 @@ func adminMetadataExport(firstTitles, addTitles []string, lines []lineMetadata,
375375
if v, exists := l.metadata[k]; exists {
376376
nMetadataWrite++
377377
writeLine(f, fmt.Sprintf(";%s", v))
378+
} else {
379+
writeLine(f, ";")
378380
}
379381
}
380-
// write empty ";"
381-
writeLine(f, fmt.Sprintf("%s", strings.Repeat(";", len(keys)-nMetadataWrite)))
382382
writeLine(f, fmt.Sprintf("\n"))
383383
fmt.Printf("")
384384
}

0 commit comments

Comments
 (0)
0