Blame SOURCES/7-gcp-bundled.patch

05afe3
diff -uNr a/heartbeat/gcp-vpc-move-ip.in b/heartbeat/gcp-vpc-move-ip.in
05afe3
--- a/heartbeat/gcp-vpc-move-ip.in	2018-07-23 12:38:54.098572982 +0200
05afe3
+++ b/heartbeat/gcp-vpc-move-ip.in	2018-07-23 12:39:31.062083667 +0200
05afe3
@@ -36,7 +36,7 @@
05afe3
 . ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
05afe3
 
05afe3
 # Defaults
05afe3
-OCF_RESKEY_gcloud_default="/usr/bin/gcloud"
05afe3
+OCF_RESKEY_gcloud_default="/usr/bin/gcloud-ra"
05afe3
 OCF_RESKEY_configuration_default="default"
05afe3
 OCF_RESKEY_vpc_network_default="default"
05afe3
 OCF_RESKEY_interface_default="eth0"
05afe3
diff -uNr a/heartbeat/gcp-vpc-move-route.in b/heartbeat/gcp-vpc-move-route.in
05afe3
--- a/heartbeat/gcp-vpc-move-route.in	2018-07-23 12:38:54.100572956 +0200
05afe3
+++ b/heartbeat/gcp-vpc-move-route.in	2018-07-23 12:40:39.174182018 +0200
05afe3
@@ -45,6 +45,8 @@
05afe3
 from ocf import *
05afe3
 
05afe3
 try:
05afe3
+  sys.path.insert(0, '/usr/lib/resource-agents/bundled/gcp/google-cloud-sdk/lib/third_party')
05afe3
+  sys.path.insert(0, '/usr/lib/resource-agents/bundled/gcp')
05afe3
   import googleapiclient.discovery
05afe3
   import pyroute2
05afe3
 except ImportError:
05afe3
diff -uNr a/heartbeat/gcp-vpc-move-vip.in b/heartbeat/gcp-vpc-move-vip.in
05afe3
--- a/heartbeat/gcp-vpc-move-vip.in	2018-07-23 12:38:54.105572889 +0200
05afe3
+++ b/heartbeat/gcp-vpc-move-vip.in	2018-07-23 12:39:31.063083654 +0200
05afe3
@@ -28,6 +28,7 @@
05afe3
 from ocf import *
05afe3
 
05afe3
 try:
05afe3
+  sys.path.insert(0, '/usr/lib/resource-agents/bundled/gcp/google-cloud-sdk/lib/third_party')
05afe3
   import googleapiclient.discovery
05afe3
 except ImportError:
05afe3
   pass