improve cleanup of anonymous kubeconfig files

This commit is contained in:
Ryan Petrello
2019-10-22 16:40:54 -04:00
parent 70269d9a0d
commit ccaaee61f0
4 changed files with 24 additions and 18 deletions

View File

@@ -1423,7 +1423,6 @@ class BaseTask(object):
def deploy_container_group_pod(self, task):
from awx.main.scheduler.kubernetes import PodManager # Avoid circular import
pod_manager = PodManager(self.instance)
self.cleanup_paths.append(pod_manager.kube_config)
try:
log_name = task.log_format
logger.debug(f"Launching pod for {log_name}.")