Skip to content

Commit 36521e7

Browse files
committed
final tweaks to google to use requests
1 parent a2fecff commit 36521e7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

singularity/build/google.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727
2828
'''
2929

30-
from singularity.hub.utils import (
31-
api_get,
32-
api_put
33-
)
34-
3530
from singularity.build.utils import sniff_extension
3631

3732
from singularity.build.main import (
@@ -363,8 +358,7 @@ def get_build_metadata(key):
363358
'''
364359
headers = {"Metadata-Flavor":"Google"}
365360
url = "http://metadata.google.internal/computeMetadata/v1/instance/attributes/%s" %(key)
366-
response = api_get(url=url,headers=headers)
367-
361+
response = requests.get(url=url,headers=headers)
368362
# Successful query returns the result
369363
if response.status_code == 200:
370364
return response.text

0 commit comments

Comments
 (0)