protokube/gce_volume.go: error info correction

Signed-off-by: ethan <guangming.wang@daocloud.io>
This commit is contained in:
ethan 2019-08-06 22:03:14 +08:00 committed by GitHub
parent fb92bb5ab8
commit 0c6b86ac59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ func (v *GCEVolumes) buildGCEVolume(d *compute.Disk) (*Volume, error) {
for _, attachedTo := range d.Users {
u, err := gce.ParseGoogleCloudURL(attachedTo)
if err != nil {
return nil, fmt.Errorf("error parsing disk attachmnet url %q: %v", attachedTo, err)
return nil, fmt.Errorf("error parsing disk attachment url %q: %v", attachedTo, err)
}
vol.AttachedTo = u.Name