Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make k8s_drain work when only one pod is present (ansible-collections…
…#770) SUMMARY Fixes ansible-collections#769 . k8s_drain was not checking if a pod has been deleted when there was only one pod on the node to be drained. The list of pods, pods, was being "popped" before the first iteration of the while loop: pod = pods.pop() while (_elapsed_time() < wait_timeout or wait_timeout == 0) and pods: When pods contains only one element, the while loop is skipped. ISSUE TYPE Bugfix Pull Request COMPONENT NAME k8s_drain Reviewed-by: Mike Graves <mgraves@redhat.com>
- Loading branch information