Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
fence-agents.9831
0004-fence_gce-add-missing-imports-to-retrieve-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-fence_gce-add-missing-imports-to-retrieve-the-projec.patch of Package fence-agents.9831
From 68644764695b79a3b75826fe009ea7da675677f7 Mon Sep 17 00:00:00 2001 From: Helen Koike <helen.koike@collabora.com> Date: Thu, 5 Jul 2018 11:04:32 -0300 Subject: [PATCH 4/7] fence_gce: add missing imports to retrieve the project --- agents/gce/fence_gce.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fence/agents/gce/fence_gce.py b/fence/agents/gce/fence_gce.py index 3f77dc24..9b7b5e55 100644 --- a/fence/agents/gce/fence_gce.py +++ b/fence/agents/gce/fence_gce.py @@ -2,9 +2,18 @@ import atexit import logging +import os import platform import sys import time +if sys.version_info >= (3, 0): + # Python 3 imports. + import urllib.parse as urlparse + import urllib.request as urlrequest +else: + # Python 2 imports. + import urllib as urlparse + import urllib2 as urlrequest sys.path.append("@FENCEAGENTSLIBDIR@") import googleapiclient.discovery -- 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