Skip to content

Commit f32289e

Browse files
author
Peter Jönsson
committed
fmt
1 parent 8be7f46 commit f32289e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (cloudstack CloudstackClient) New(apiurl string, apikey string, secret stri
3333
client: &http.Client{
3434
Transport: &http.Transport{
3535
TLSClientConfig: &tls.Config{InsecureSkipVerify: insecureskipverify},
36-
Proxy: http.ProxyFromEnvironment,
36+
Proxy: http.ProxyFromEnvironment,
3737
},
3838
},
3939
BaseURL: apiurl,

wait.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (c CloudstackClient) WaitForAsyncJob(jobId string, timeout time.Duration) e
5050

5151
// Verify we shouldn't exit
5252
select {
53-
case <- done:
53+
case <-done:
5454
// We finished, so just exit the goroutine
5555
return
5656
default:
@@ -61,9 +61,9 @@ func (c CloudstackClient) WaitForAsyncJob(jobId string, timeout time.Duration) e
6161

6262
log.Printf("Waiting for up to %d seconds for async job %s", timeout, jobId)
6363
select {
64-
case err := <- result:
64+
case err := <-result:
6565
return err
66-
case <- time.After(timeout):
66+
case <-time.After(timeout):
6767
err := fmt.Errorf("Timeout while waiting to for async job to finish")
6868
return err
6969
}
@@ -108,7 +108,7 @@ func (c CloudstackClient) WaitForVirtualMachineState(vmid string, wantedState st
108108

109109
// Verify we shouldn't exit
110110
select {
111-
case <- done:
111+
case <-done:
112112
// We finished, so just exit the goroutine
113113
return
114114
default:
@@ -119,9 +119,9 @@ func (c CloudstackClient) WaitForVirtualMachineState(vmid string, wantedState st
119119

120120
log.Printf("Waiting for up to %d seconds for Virtual Machine state to converge", timeout)
121121
select {
122-
case err := <- result:
122+
case err := <-result:
123123
return err
124-
case <- time.After(timeout):
124+
case <-time.After(timeout):
125125
err := fmt.Errorf("Timeout while waiting to for Virtual Machine to converge")
126126
return err
127127
}

0 commit comments

Comments
 (0)