We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2fecff commit 36521e7Copy full SHA for 36521e7
1 file changed
singularity/build/google.py
@@ -27,11 +27,6 @@
27
28
'''
29
30
-from singularity.hub.utils import (
31
- api_get,
32
- api_put
33
-)
34
-
35
from singularity.build.utils import sniff_extension
36
37
from singularity.build.main import (
@@ -363,8 +358,7 @@ def get_build_metadata(key):
363
358
364
359
headers = {"Metadata-Flavor":"Google"}
365
360
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)
368
362
# Successful query returns the result
369
if response.status_code == 200:
370
return response.text
0 commit comments