azure: Fix protokube tags parsing

This commit is contained in:
Ciprian Hacman 2025-07-21 16:13:22 +03:00
parent 75a7373246
commit 8bcaa7e93d
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ func (m *instanceComputeMetadata) GetTags() (map[string]string, error) {
tags := map[string]string{} tags := map[string]string{}
l := strings.Split(m.Tags, ";") l := strings.Split(m.Tags, ";")
for _, t := range l { for _, t := range l {
tl := strings.Split(t, ":") tl := strings.SplitN(t, ":", 2)
if len(tl) != 2 { if len(tl) != 2 {
return nil, fmt.Errorf("unexpected tag format: %s", tl) return nil, fmt.Errorf("unexpected tag format: %s", tl)
} }