Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit fdfb545

Browse files
committed
fix typos in this file
1 parent d508a3b commit fdfb545

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

pkg/volume/cinder/attacher.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ var _ volume.Attacher = &cinderDiskAttacher{}
4444
var _ volume.AttachableVolumePlugin = &cinderPlugin{}
4545

4646
const (
47-
probeVolumeInitDealy = 1 * time.Second
47+
probeVolumeInitDelay = 1 * time.Second
4848
probeVolumeFactor = 2.0
49-
operationFinishInitDealy = 1 * time.Second
49+
operationFinishInitDelay = 1 * time.Second
5050
operationFinishFactor = 1.1
5151
operationFinishSteps = 10
52-
diskAttachInitDealy = 1 * time.Second
52+
diskAttachInitDelay = 1 * time.Second
5353
diskAttachFactor = 1.2
5454
diskAttachSteps = 15
55-
diskDetachInitDealy = 1 * time.Second
55+
diskDetachInitDelay = 1 * time.Second
5656
diskDetachFactor = 1.2
5757
diskDetachSteps = 13
5858
)
@@ -75,7 +75,7 @@ func (plugin *cinderPlugin) GetDeviceMountRefs(deviceMountPath string) ([]string
7575

7676
func (attacher *cinderDiskAttacher) waitOperationFinished(volumeID string) error {
7777
backoff := wait.Backoff{
78-
Duration: operationFinishInitDealy,
78+
Duration: operationFinishInitDelay,
7979
Factor: operationFinishFactor,
8080
Steps: operationFinishSteps,
8181
}
@@ -100,7 +100,7 @@ func (attacher *cinderDiskAttacher) waitOperationFinished(volumeID string) error
100100

101101
func (attacher *cinderDiskAttacher) waitDiskAttached(instanceID, volumeID string) error {
102102
backoff := wait.Backoff{
103-
Duration: diskAttachInitDealy,
103+
Duration: diskAttachInitDelay,
104104
Factor: diskAttachFactor,
105105
Steps: diskAttachSteps,
106106
}
@@ -235,12 +235,12 @@ func (attacher *cinderDiskAttacher) WaitForAttach(spec *volume.Spec, devicePath
235235
return "", fmt.Errorf("WaitForAttach failed for Cinder disk %q: devicePath is empty.", volumeID)
236236
}
237237

238-
ticker := time.NewTicker(probeVolumeInitDealy)
238+
ticker := time.NewTicker(probeVolumeInitDelay)
239239
defer ticker.Stop()
240240
timer := time.NewTimer(timeout)
241241
defer timer.Stop()
242242

243-
duration := probeVolumeInitDealy
243+
duration := probeVolumeInitDelay
244244
for {
245245
select {
246246
case <-ticker.C:
@@ -334,7 +334,7 @@ func (plugin *cinderPlugin) NewDetacher() (volume.Detacher, error) {
334334

335335
func (detacher *cinderDiskDetacher) waitOperationFinished(volumeID string) error {
336336
backoff := wait.Backoff{
337-
Duration: operationFinishInitDealy,
337+
Duration: operationFinishInitDelay,
338338
Factor: operationFinishFactor,
339339
Steps: operationFinishSteps,
340340
}
@@ -359,7 +359,7 @@ func (detacher *cinderDiskDetacher) waitOperationFinished(volumeID string) error
359359

360360
func (detacher *cinderDiskDetacher) waitDiskDetached(instanceID, volumeID string) error {
361361
backoff := wait.Backoff{
362-
Duration: diskDetachInitDealy,
362+
Duration: diskDetachInitDelay,
363363
Factor: diskDetachFactor,
364364
Steps: diskDetachSteps,
365365
}

0 commit comments

Comments
 (0)