Remove unused ansible version method

This commit is contained in:
Alan Rominger 2022-01-05 13:16:23 -05:00
parent 6dda5f477e
commit 9664aed1f2
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

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