forked from p15670423/monkey
Modern classes and not old school classes
This commit is contained in:
parent
b3afeee3c0
commit
1c75fbecf0
|
@ -3,7 +3,7 @@ import urllib2
|
||||||
__author__ = 'itay.mizeretz'
|
__author__ = 'itay.mizeretz'
|
||||||
|
|
||||||
|
|
||||||
class AWS:
|
class AWS(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
try:
|
try:
|
||||||
self.instance_id = urllib2.urlopen('http://169.254.169.254/latest/meta-data/instance-id').read()
|
self.instance_id = urllib2.urlopen('http://169.254.169.254/latest/meta-data/instance-id').read()
|
||||||
|
|
Loading…
Reference in New Issue