Skip to content

Commit 8bcaa7e

Browse files
committed
azure: Fix protokube tags parsing
1 parent 75a7373 commit 8bcaa7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protokube/pkg/gossip/azure/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (m *instanceComputeMetadata) GetTags() (map[string]string, error) {
4242
tags := map[string]string{}
4343
l := strings.Split(m.Tags, ";")
4444
for _, t := range l {
45-
tl := strings.Split(t, ":")
45+
tl := strings.SplitN(t, ":", 2)
4646
if len(tl) != 2 {
4747
return nil, fmt.Errorf("unexpected tag format: %s", tl)
4848
}

0 commit comments

Comments
 (0)