fence-agents/bundled-kubevirt.patch
Oyvind Albrigtsen fd8d1fcadf - new upstream release
Resolves: RHEL-65332
- ha-cloud-support: add awscli2 dependency
  Resolves: RHEL-60021
- fence_bladecenter fix SyntaxWarning: invalid escape sequence '\s'
  Resolves: RHEL-57063
- build: remove python-poetry-core BuildRequires
  Resolves: RHEL-60893
- fence_compute/fence_evacuate: drop unused agents
2024-11-25 13:07:29 +01: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/lib64/python#PYTHON3_VERSION#/site-packages')
+ sys.path.insert(1, '/usr/lib/fence-agents/support/kubevirt/lib/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")