From aab6efd192b4ca9e72a317bb2df93d39573494c2 Mon Sep 17 00:00:00 2001 From: edisonxiang Date: Thu, 23 Nov 2017 10:48:23 +0800 Subject: [PATCH] Change wording in OpenStack Provider --- .../providers/openstack/openstack_loadbalancer.go | 8 ++++---- pkg/cloudprovider/providers/openstack/openstack_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go b/pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go index 98b5b44ed77..c459aa14e2a 100644 --- a/pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go +++ b/pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go @@ -50,7 +50,7 @@ const ( // going into ACTIVE loadbalancer provisioning status. Starting with 1 // seconds, multiplying by 1.2 with each step and taking 19 steps at maximum // it will time out after 128s, which roughly corresponds to 120s - loadbalancerActiveInitDealy = 1 * time.Second + loadbalancerActiveInitDelay = 1 * time.Second loadbalancerActiveFactor = 1.2 loadbalancerActiveSteps = 19 @@ -58,7 +58,7 @@ const ( // waiting for delete operation to complete. Starting with 1 // seconds, multiplying by 1.2 with each step and taking 13 steps at maximum // it will time out after 32s, which roughly corresponds to 30s - loadbalancerDeleteInitDealy = 1 * time.Second + loadbalancerDeleteInitDelay = 1 * time.Second loadbalancerDeleteFactor = 1.2 loadbalancerDeleteSteps = 13 @@ -320,7 +320,7 @@ func getSecurityGroupRules(client *gophercloud.ServiceClient, opts rules.ListOpt func waitLoadbalancerActiveProvisioningStatus(client *gophercloud.ServiceClient, loadbalancerID string) (string, error) { backoff := wait.Backoff{ - Duration: loadbalancerActiveInitDealy, + Duration: loadbalancerActiveInitDelay, Factor: loadbalancerActiveFactor, Steps: loadbalancerActiveSteps, } @@ -350,7 +350,7 @@ func waitLoadbalancerActiveProvisioningStatus(client *gophercloud.ServiceClient, func waitLoadbalancerDeleted(client *gophercloud.ServiceClient, loadbalancerID string) error { backoff := wait.Backoff{ - Duration: loadbalancerDeleteInitDealy, + Duration: loadbalancerDeleteInitDelay, Factor: loadbalancerDeleteFactor, Steps: loadbalancerDeleteSteps, } diff --git a/pkg/cloudprovider/providers/openstack/openstack_test.go b/pkg/cloudprovider/providers/openstack/openstack_test.go index 0875185b63d..6cf0968835b 100644 --- a/pkg/cloudprovider/providers/openstack/openstack_test.go +++ b/pkg/cloudprovider/providers/openstack/openstack_test.go @@ -45,14 +45,14 @@ const ( // waiting for specified volume status. Starting with 1 // seconds, multiplying by 1.2 with each step and taking 13 steps at maximum // it will time out after 32s, which roughly corresponds to 30s - volumeStatusInitDealy = 1 * time.Second + volumeStatusInitDelay = 1 * time.Second volumeStatusFactor = 1.2 volumeStatusSteps = 13 ) func WaitForVolumeStatus(t *testing.T, os *OpenStack, volumeName string, status string) { backoff := wait.Backoff{ - Duration: volumeStatusInitDealy, + Duration: volumeStatusInitDelay, Factor: volumeStatusFactor, Steps: volumeStatusSteps, }