Blame SOURCES/bz1568753-4-fence_gce-bundled-libs.patch

6a3e49
diff -uNr a/agents/gce/fence_gce.py b/agents/gce/fence_gce.py
6a3e49
--- a/agents/gce/fence_gce.py	2018-07-12 09:54:53.121993715 +0200
6a3e49
+++ b/agents/gce/fence_gce.py	2018-07-12 09:57:42.580699588 +0200
6a3e49
@@ -15,9 +15,14 @@
6a3e49
   import urllib2 as urlrequest
6a3e49
 sys.path.append("@FENCEAGENTSLIBDIR@")
6a3e49
 
6a3e49
-import googleapiclient.discovery
6a3e49
 from fencing import fail_usage, run_delay, all_opt, atexit_handler, check_input, process_input, show_docs, fence_action
6a3e49
 
6a3e49
+try:
6a3e49
+	sys.path.insert(0, '/usr/lib/fence-agents/bundled/gce')
6a3e49
+	import googleapiclient.discovery
6a3e49
+except ImportError:
6a3e49
+        pass
6a3e49
+
6a3e49
 
6a3e49
 METADATA_SERVER = 'http://metadata.google.internal/computeMetadata/v1/'
6a3e49
 METADATA_HEADERS = {'Metadata-Flavor': 'Google'}