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

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