From 811ea06c9bae8b7eabdbec9c95b27425a4d29cc1 Mon Sep 17 00:00:00 2001 From: AnsibleGuy Date: Sat, 5 Oct 2024 23:13:36 +0200 Subject: [PATCH] fix ansible-runner references --- src/ansibleguy-webui/aw/utils/version.py | 3 ++- src/ansibleguy-webui/aw/views/system.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ansibleguy-webui/aw/utils/version.py b/src/ansibleguy-webui/aw/utils/version.py index 6e646e5..c876db5 100644 --- a/src/ansibleguy-webui/aw/utils/version.py +++ b/src/ansibleguy-webui/aw/utils/version.py @@ -41,7 +41,8 @@ def parsed_ansible_version(python_modules) -> dict: versions['libyaml'] = ansible_version[-1].split('=')[1].strip() if 'ansible-runner' in python_modules: - versions['ansible_runner'] = python_modules['ansible-runner']['version'] + # versions['ansible_runner'] = python_modules['ansible-runner']['version'] + versions['ansible_runner'] = python_modules['ansibleguy-runner']['version'] if 'ansible' in python_modules: versions['ansible'] = python_modules['ansible']['version'] diff --git a/src/ansibleguy-webui/aw/views/system.py b/src/ansibleguy-webui/aw/views/system.py index 93acf0e..88a9a4d 100644 --- a/src/ansibleguy-webui/aw/views/system.py +++ b/src/ansibleguy-webui/aw/views/system.py @@ -6,7 +6,7 @@ from django.shortcuts import HttpResponse from django.shortcuts import render from django.contrib.auth.decorators import login_required -from ansible_runner.interface import get_ansible_config +from ansibleguy_runner.interface import get_ansible_config from aw.utils.http import ui_endpoint_wrapper from aw.utils.subps import process_cache