19 lines
606 B
Diff
19 lines
606 B
Diff
|
commit cbe0e6507992b50afbaebc46dfaf8955cc02e5ec
|
||
|
Author: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
||
|
|
||
|
Python agents: use OCF_FUNCTIONS_DIR env variable when available
|
||
|
|
||
|
diff --git a/heartbeat/gcp-pd-move.in b/heartbeat/gcp-pd-move.in
|
||
|
index f9f6c316..c5007a43 100755
|
||
|
--- a/heartbeat/gcp-pd-move.in
|
||
|
+++ b/heartbeat/gcp-pd-move.in
|
||
|
@@ -25,7 +25,7 @@ import re
|
||
|
import sys
|
||
|
import time
|
||
|
|
||
|
-OCF_FUNCTIONS_DIR = "%s/lib/heartbeat" % os.environ.get("OCF_ROOT")
|
||
|
+OCF_FUNCTIONS_DIR = os.environ.get("OCF_FUNCTIONS_DIR", "%s/lib/heartbeat" % os.environ.get("OCF_ROOT"))
|
||
|
sys.path.append(OCF_FUNCTIONS_DIR)
|
||
|
|
||
|
import ocf
|