Skip to content

Commit a052a46

Browse files
authored
Fix service load balancer crash (#1070)
1 parent cb51448 commit a052a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/resource_kubernetes_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func resourceKubernetesServiceCreate(ctx context.Context, d *schema.ResourceData
209209
log.Printf("[INFO] Submitted new service: %#v", out)
210210
d.SetId(buildId(out.ObjectMeta))
211211

212-
if out.Spec.Type == api.ServiceTypeLoadBalancer && d.Get("wait_for_rollout").(bool) {
212+
if out.Spec.Type == api.ServiceTypeLoadBalancer && d.Get("wait_for_load_balancer").(bool) {
213213
log.Printf("[DEBUG] Waiting for load balancer to assign IP/hostname")
214214

215215
err = resource.RetryContext(ctx, d.Timeout(schema.TimeoutCreate), func() *resource.RetryError {

0 commit comments

Comments
 (0)