Skip to content

Commit

Permalink
Added a check for "Deleted" status of the VPC worker pool
Browse files Browse the repository at this point in the history
  • Loading branch information
progxaker authored and hkantare committed Feb 22, 2022
1 parent 4081397 commit f292779
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,9 @@ func resourceIBMContainerVpcWorkerPoolExists(d *schema.ResourceData, meta interf
}
return false, fmt.Errorf("[ERROR] Error getting container vpc workerpool: %s", err)
}
if strings.Compare(workerPool.Lifecycle.ActualState, "deleted") == 0 {
return false, nil
}

return workerPool.ID == workerPoolID, nil
}
Expand Down

0 comments on commit f292779

Please sign in to comment.