AWX_CONTAINER_GROUP_KEEP_POD -> RECEPTOR_KEEP_WORK

This commit is contained in:
Shane McDonald
2021-04-05 17:44:40 -04:00
parent 775c0b02ee
commit 6294ddfded
2 changed files with 2 additions and 2 deletions

View File

@@ -3012,7 +3012,7 @@ class AWXReceptorJob:
return self._run_internal(receptor_ctl)
finally:
# Make sure to always release the work unit if we established it
if self.unit_id is not None and not settings.AWX_CONTAINER_GROUP_KEEP_POD:
if self.unit_id is not None and settings.RECEPTOR_RELEASE_WORK:
receptor_ctl.simple_command(f"work release {self.unit_id}")
def _run_internal(self, receptor_ctl):