Modern classes and not old school classes

This commit is contained in:
Daniel Goldberg 2018-11-27 14:12:23 +02:00
parent b3afeee3c0
commit 1c75fbecf0
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import urllib2
__author__ = 'itay.mizeretz'
class AWS:
class AWS(object):
def __init__(self):
try:
self.instance_id = urllib2.urlopen('http://169.254.169.254/latest/meta-data/instance-id').read()