mirror of
https://github.com/ansible/awx.git
synced 2026-03-16 00:17:29 -02:30
fix tower-expect -> awx-expect for isolated tower builds
This commit is contained in:
@@ -26,7 +26,7 @@ def main():
|
||||
)
|
||||
try:
|
||||
version = subprocess.check_output(
|
||||
['tower-expect', '--version'],
|
||||
['awx-expect', '--version'],
|
||||
stderr=subprocess.STDOUT
|
||||
).strip()
|
||||
except subprocess.CalledProcessError as e:
|
||||
|
||||
@@ -51,7 +51,7 @@ def main():
|
||||
try:
|
||||
re_match = re.match(r'\/tmp\/ansible_tower_\d+_.+', path)
|
||||
if re_match is not None:
|
||||
if subprocess.check_call(['tower-expect', 'is-alive', path]) == 0:
|
||||
if subprocess.check_call(['awx-expect', 'is-alive', path]) == 0:
|
||||
continue
|
||||
else:
|
||||
module.debug('Deleting path {} its job has completed.'.format(path))
|
||||
|
||||
Reference in New Issue
Block a user