kubeadm: update token to use '.' in discovery pkg

This commit is contained in:
Derek McQuay 2017-02-21 13:44:52 -08:00
parent 746cc5d284
commit 389e065ebc
No known key found for this signature in database
GPG Key ID: 92A7BC0C86B0B91A
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ func (d *discoveryValue) String() string {
case d.v.File != nil:
return "file://" + d.v.File.Path
case d.v.Token != nil:
return fmt.Sprintf("token://%s:%s@%s", d.v.Token.ID, d.v.Token.Secret, strings.Join(d.v.Token.Addresses, ","))
return fmt.Sprintf("token://%s.%s@%s", d.v.Token.ID, d.v.Token.Secret, strings.Join(d.v.Token.Addresses, ","))
default:
return "unknown"
}

View File

@ -60,7 +60,7 @@ func TestNewDiscoveryValue(t *testing.T) {
Addresses: []string{"foobar"},
},
},
}, expect: "token://foo:bar@foobar",
}, expect: "token://foo.bar@foobar",
},
}
for _, rt := range tests {