forked from p15670423/monkey
PEP8 stuff
This commit is contained in:
parent
078470e257
commit
0feb19ede5
|
@ -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
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
class Exporter:
|
||||
|
||||
class Exporter(object):
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue