replace iterator by generator (#205)

Fix network_sanity_ee_tests

SUMMARY

Network sanity ee tests are broken

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Abhijeet Kasurde <None>
Reviewed-by: None <None>
This commit is contained in:
abikouo
2021-08-17 15:33:27 +02:00
committed by GitHub
parent b875531c8a
commit a4701a6806
5 changed files with 11 additions and 7 deletions

View File

@@ -148,7 +148,7 @@ def filter_pods(pods, force, ignore_daemonset):
# Pod with local storage cannot be deleted
# TODO: support new option delete-emptydatadir in order to allow deletion of such pod
if pod.spec.volumes and any([vol.empty_dir for vol in pod.spec.volumes]):
if pod.spec.volumes and any(vol.empty_dir for vol in pod.spec.volumes):
localStorage.append((pod.metadata.namespace, pod.metadata.name))
continue