Blame SOURCES/7-gcp-bundled.patch

b4b3ce
diff -uNr a/heartbeat/gcp-vpc-move-ip.in b/heartbeat/gcp-vpc-move-ip.in
b4b3ce
--- a/heartbeat/gcp-vpc-move-ip.in	2019-04-05 09:20:26.164739897 +0200
b4b3ce
+++ b/heartbeat/gcp-vpc-move-ip.in	2019-04-05 09:21:01.331139742 +0200
b4b3ce
@@ -36,7 +36,7 @@
b4b3ce
 . ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
b4b3ce
 
b4b3ce
 # Defaults
b4b3ce
-OCF_RESKEY_gcloud_default="/usr/bin/gcloud"
b4b3ce
+OCF_RESKEY_gcloud_default="/usr/bin/gcloud-ra"
b4b3ce
 OCF_RESKEY_configuration_default="default"
b4b3ce
 OCF_RESKEY_vpc_network_default="default"
b4b3ce
 OCF_RESKEY_interface_default="eth0"
5371d1
diff -uNr a/heartbeat/gcp-vpc-move-vip.in b/heartbeat/gcp-vpc-move-vip.in
5371d1
--- a/heartbeat/gcp-vpc-move-vip.in	2020-06-25 13:21:42.090334894 +0200
5371d1
+++ b/heartbeat/gcp-vpc-move-vip.in	2020-06-25 13:14:16.668092817 +0200
5371d1
@@ -28,6 +28,7 @@
5371d1
 from ocf import *
5371d1
 
5371d1
 try:
5371d1
+  sys.path.insert(0, '/usr/lib/resource-agents/bundled/gcp/google-cloud-sdk/lib/third_party')
5371d1
   import googleapiclient.discovery
5371d1
 except ImportError:
5371d1
   pass
b4b3ce
diff -uNr a/heartbeat/gcp-vpc-move-route.in b/heartbeat/gcp-vpc-move-route.in
5371d1
--- a/heartbeat/gcp-vpc-move-route.in	2020-06-25 13:22:03.216301380 +0200
5371d1
+++ b/heartbeat/gcp-vpc-move-route.in	2020-06-25 13:13:19.864183380 +0200
5371d1
@@ -45,6 +45,8 @@
b4b3ce
 from ocf import *
b4b3ce
 
b4b3ce
 try:
b4b3ce
+  sys.path.insert(0, '/usr/lib/resource-agents/bundled/gcp')
5371d1
+  sys.path.insert(0, '/usr/lib/resource-agents/bundled/gcp/google-cloud-sdk/lib/third_party')
b4b3ce
   import googleapiclient.discovery
b4b3ce
   import pyroute2
b4b3ce
 except ImportError: