fix: return empty array instead of null for tagless volumes
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@ func listTags(isoPath, part, volName string) ([]TagInfo, error) {
|
|||||||
func parseTags(output string) []TagInfo {
|
func parseTags(output string) []TagInfo {
|
||||||
reTag := regexp.MustCompile(`^\s*(\d+)\s+(\S.*)`)
|
reTag := regexp.MustCompile(`^\s*(\d+)\s+(\S.*)`)
|
||||||
|
|
||||||
var tags []TagInfo
|
tags := []TagInfo{}
|
||||||
inTags := false
|
inTags := false
|
||||||
|
|
||||||
for _, line := range strings.Split(output, "\n") {
|
for _, line := range strings.Split(output, "\n") {
|
||||||
|
|||||||
Reference in New Issue
Block a user