Skip to content

Commit 206be66

Browse files
Fix header
1 parent d2bc24e commit 206be66

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

examples/iaasalpha/attach_nic/attach_nic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func main() {
5454
fmt.Printf("[iaasalpha API] Triggered removal of attachment of nic with ID %q.\n", nicId)
5555
}
5656

57-
requestId = httpResp.Header["wait.XRequestIDHeader"][0]
57+
requestId = httpResp.Header[wait.XRequestIDHeader][0]
5858

5959
// Wait for dettachment of the nic
6060
_, err = wait.ProjectRequestWaitHandler(context.Background(), iaasalphaClient, projectId, requestId).WaitWithContext(context.Background())

examples/iaasalpha/attach_public_ip/attach_public_ip.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func main() {
3636
} else {
3737
fmt.Printf("[iaasalpha API] Triggered attachment of public ip with ID %q.\n", publicIpId)
3838
}
39-
requestId := httpResp.Header["wait.XRequestIDHeader"][0]
39+
requestId := httpResp.Header[wait.XRequestIDHeader][0]
4040

4141
// Wait for attachment of the public ip
4242
_, err = wait.ProjectRequestWaitHandler(context.Background(), iaasalphaClient, projectId, requestId).WaitWithContext(context.Background())
@@ -54,7 +54,7 @@ func main() {
5454
fmt.Printf("[iaasalpha API] Triggered removal of attachment of public ip with ID %q.\n", publicIpId)
5555
}
5656

57-
requestId = httpResp.Header["wait.XRequestIDHeader"][0]
57+
requestId = httpResp.Header[wait.XRequestIDHeader][0]
5858

5959
// Wait for dettachment of the public ip
6060
_, err = wait.ProjectRequestWaitHandler(context.Background(), iaasalphaClient, projectId, requestId).WaitWithContext(context.Background())

examples/iaasalpha/attach_security_group/attach_security_group.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func main() {
3636
} else {
3737
fmt.Printf("[iaasalpha API] Triggered attachment of security group with ID %q.\n", securityGroupId)
3838
}
39-
requestId := httpResp.Header["wait.XRequestIDHeader"][0]
39+
requestId := httpResp.Header[wait.XRequestIDHeader][0]
4040

4141
// Wait for attachment of the security group
4242
_, err = wait.ProjectRequestWaitHandler(context.Background(), iaasalphaClient, projectId, requestId).WaitWithContext(context.Background())
@@ -54,7 +54,7 @@ func main() {
5454
fmt.Printf("[iaasalpha API] Triggered removal of attachment of security group with ID %q.\n", securityGroupId)
5555
}
5656

57-
requestId = httpResp.Header["wait.XRequestIDHeader"][0]
57+
requestId = httpResp.Header[wait.XRequestIDHeader][0]
5858

5959
// Wait for dettachment of the security group
6060
_, err = wait.ProjectRequestWaitHandler(context.Background(), iaasalphaClient, projectId, requestId).WaitWithContext(context.Background())

examples/iaasalpha/attach_service_account/attach_service_account.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func main() {
3636
} else {
3737
fmt.Printf("[iaasalpha API] Triggered attachment of service account with mail %q.\n", serviceAccountMail)
3838
}
39-
requestId := httpResp.Header["wait.XRequestIDHeader"][0]
39+
requestId := httpResp.Header[wait.XRequestIDHeader][0]
4040

4141
// Wait for attachment of the service account
4242
_, err = wait.ProjectRequestWaitHandler(context.Background(), iaasalphaClient, projectId, requestId).WaitWithContext(context.Background())
@@ -54,7 +54,7 @@ func main() {
5454
fmt.Printf("[iaasalpha API] Triggered removal of attachment of service account with mail %q.\n", serviceAccountMail)
5555
}
5656

57-
requestId = httpResp.Header["wait.XRequestIDHeader"][0]
57+
requestId = httpResp.Header[wait.XRequestIDHeader][0]
5858

5959
// Wait for dettachment of the service account
6060
_, err = wait.ProjectRequestWaitHandler(context.Background(), iaasalphaClient, projectId, requestId).WaitWithContext(context.Background())

0 commit comments

Comments
 (0)