Skip to content

Commit

Permalink
Fix bug that not waiting batch_job_queue deleted.
Browse files Browse the repository at this point in the history
Deleting compute environment with job queue failed because of this.
  • Loading branch information
shibataka000 committed Nov 16, 2017
1 parent b59fa96 commit 51651a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/resource_aws_batch_job_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ func resourceAwsBatchJobQueueDelete(d *schema.ResourceData, meta interface{}) er
_, err = conn.DeleteJobQueue(&batch.DeleteJobQueueInput{
JobQueue: aws.String(sn),
})
if err == nil {
return nil
if err != nil {
return err
}

deleteStateConf := &resource.StateChangeConf{
Expand Down

0 comments on commit 51651a5

Please sign in to comment.