mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 20:20:06 -03:30
fixes config endpoint performance issue
This commit is contained in:
@@ -97,6 +97,9 @@ def get_ansible_version():
|
||||
'''
|
||||
Return Ansible version installed.
|
||||
'''
|
||||
from django.conf import settings
|
||||
if hasattr(settings, 'ANSIBLE_VERSION'):
|
||||
return settings.ANSIBLE_VERSION
|
||||
try:
|
||||
proc = subprocess.Popen(['ansible', '--version'],
|
||||
stdout=subprocess.PIPE)
|
||||
|
||||
Reference in New Issue
Block a user