Allow ec2.py to be imported (#21637)

This commit is contained in:
Alex Trevino 2017-02-20 15:19:05 -05:00 committed by Ryan Brown
parent 4632b65086
commit 0d060a185f

View file

@ -1567,5 +1567,6 @@ class Ec2Inventory(object):
return json.dumps(data)
# Run the script
Ec2Inventory()
if __name__ == '__main__':
# Run the script
Ec2Inventory()