Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Maintenance:9831
fence-agents.openSUSE_Leap_42.3_Update
0002-fence_gce-fix-regression-missing-import-oa...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-fence_gce-fix-regression-missing-import-oauth2client.patch of Package fence-agents.openSUSE_Leap_42.3_Update
From f1b2d114bed97e5eab0a529293188fca292489e2 Mon Sep 17 00:00:00 2001 From: Helen Koike <helen.koike@collabora.com> Date: Tue, 1 May 2018 14:01:20 -0300 Subject: [PATCH 2/3] fence_gce: fix regression - missing import oauth2client.client import oauth2client.client was missing import oauth2client is not necessary Fix wrong path to GoogleCredentials --- agents/gce/fence_gce.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fence/agents/gce/fence_gce.py b/fence/agents/gce/fence_gce.py index 04d59846..3a614f14 100644 --- a/fence/agents/gce/fence_gce.py +++ b/fence/agents/gce/fence_gce.py @@ -5,7 +5,7 @@ import sys sys.path.append("@FENCEAGENTSLIBDIR@") import googleapiclient.discovery -import oauth2client +import oauth2client.client from fencing import fail_usage, run_delay, all_opt, atexit_handler, check_input, process_input, show_docs, fence_action def translate_status(instance_status): @@ -99,7 +99,7 @@ def main(): run_delay(options) try: - credentials = oauth2client.GoogleCredentials.get_application_default() + credentials = oauth2client.client.GoogleCredentials.get_application_default() conn = googleapiclient.discovery.build('compute', 'v1', credentials=credentials) except Exception as err: fail_usage("Failed: Create GCE compute v1 connection: {}".format(str(err))) -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor