mirror of https://github.com/kubernetes/kops.git
azure: Fix protokube tags parsing
This commit is contained in:
parent
75a7373246
commit
8bcaa7e93d
|
@ -42,7 +42,7 @@ func (m *instanceComputeMetadata) GetTags() (map[string]string, error) {
|
|||
tags := map[string]string{}
|
||||
l := strings.Split(m.Tags, ";")
|
||||
for _, t := range l {
|
||||
tl := strings.Split(t, ":")
|
||||
tl := strings.SplitN(t, ":", 2)
|
||||
if len(tl) != 2 {
|
||||
return nil, fmt.Errorf("unexpected tag format: %s", tl)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue