mirror of https://github.com/docker/docs.git
FIX #2561 SSH pubkey should have username comment
Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
parent
c14770f395
commit
b995a4d65a
|
@ -297,7 +297,7 @@ func (c *ComputeUtil) createInstance(d *Driver) error {
|
|||
}
|
||||
|
||||
log.Infof("Uploading SSH Key")
|
||||
metaDataValue := c.userName + ":" + string(sshKey) + "\n"
|
||||
metaDataValue := fmt.Sprintf("%s:%s %s\n", c.userName, strings.TrimSpace(string(sshKey)), c.userName)
|
||||
op, err = c.service.Instances.SetMetadata(c.project, c.zone, c.instanceName, &raw.Metadata{
|
||||
Fingerprint: instance.Metadata.Fingerprint,
|
||||
Items: []*raw.MetadataItems{
|
||||
|
|
Loading…
Reference in New Issue