From 9664aed1f2bc12fcc008670242decf2d25ec52ba Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Wed, 5 Jan 2022 13:16:23 -0500 Subject: [PATCH] Remove unused ansible version method --- awx/main/utils/common.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/awx/main/utils/common.py b/awx/main/utils/common.py index cf80559e48..45f3ae66c6 100644 --- a/awx/main/utils/common.py +++ b/awx/main/utils/common.py @@ -210,20 +210,6 @@ def get_event_partition_epoch(): return MigrationRecorder.Migration.objects.filter(app='main', name='0144_event_partitions').first().applied -@memoize() -def get_ansible_version(): - """ - Return Ansible version installed. - Ansible path needs to be provided to account for custom virtual environments - """ - try: - proc = subprocess.Popen(['ansible', '--version'], stdout=subprocess.PIPE) - result = smart_str(proc.communicate()[0]) - return result.split('\n')[0].replace('ansible', '').strip() - except Exception: - return 'unknown' - - def get_awx_version(): """ Return AWX version as reported by setuptools.