Blame SOURCES/bz1633249-gcp-pd-move-2-use-OCF_FUNCTIONS_DIR.patch

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