fix tower-expect -> awx-expect for isolated tower builds

This commit is contained in:
Ryan Petrello
2017-07-24 16:03:58 -04:00
parent 145caafdc8
commit 8ce1421c6a
14 changed files with 23 additions and 23 deletions

View File

@@ -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:

View File

@@ -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))