PEP8 stuff

This commit is contained in:
Daniel Goldberg 2019-01-26 19:42:35 +02:00
parent 078470e257
commit 0feb19ede5
2 changed files with 3 additions and 4 deletions

View File

@ -8,7 +8,8 @@ class AWS(object):
def __init__(self):
try:
self.instance_id = urllib2.urlopen('http://169.254.169.254/latest/meta-data/instance-id', timeout=2).read()
self.region = self._parse_region(urllib2.urlopen('http://169.254.169.254/latest/meta-data/placement/availability-zone').read())
self.region = self._parse_region(
urllib2.urlopen('http://169.254.169.254/latest/meta-data/placement/availability-zone').read())
except urllib2.URLError:
self.instance_id = None
self.region = None

View File

@ -1,6 +1,4 @@
class Exporter:
class Exporter(object):
def __init__(self):
pass