fence-agents/bundled-kubevirt.patch
Oyvind Albrigtsen c4e97edd10 - Bundled missing libraries
Resolves: RHEL-25954
2024-04-11 08:54:37 +02:00

13 lines
753 B
Diff

diff --color -uNr a/agents/kubevirt/fence_kubevirt.py b/agents/kubevirt/fence_kubevirt.py
--- a/agents/kubevirt/fence_kubevirt.py 2022-01-17 12:18:10.000000000 +0100
+++ b/agents/kubevirt/fence_kubevirt.py 2024-03-14 10:10:00.334272185 +0100
@@ -8,6 +8,8 @@
from fencing import fail, fail_usage, run_delay, EC_STATUS, EC_FETCH_VM_UUID
try:
+ sys.path.insert(0, '/usr/lib/fence-agents/support/kubevirt/lib/python#PYTHON3_VERSION#/site-packages')
+ sys.path.insert(0, '/usr/lib/fence-agents/support/kubevirt/lib64/python#PYTHON3_VERSION#/site-packages')
from kubernetes.client.exceptions import ApiException
except ImportError:
logging.error("Couldn\'t import kubernetes.client.exceptions.ApiException - not found or not accessible")