We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 799e559 + 85d783a commit 01daf4dCopy full SHA for 01daf4d
1 file changed
contrib/aws/gen-json.py
@@ -2,7 +2,7 @@
2
import argparse
3
import json
4
import os
5
-import urllib
+import urllib2
6
import yaml
7
8
parser = argparse.ArgumentParser()
@@ -12,7 +12,7 @@
12
13
url = "http://{channel}.release.core-os.net/amd64-usr/{version}/coreos_production_ami_all.json".format(**args)
14
try:
15
- amis = json.load(urllib.urlopen(url))
+ amis = json.load(urllib2.urlopen(url))
16
except (IOError, ValueError):
17
print "The URL {} is invalid.".format(url)
18
raise
0 commit comments