get rid of yaml module, since AWS instance-identity natively sends JSON.

This commit is contained in:
Oleksii Kliukin
2015-07-10 10:33:07 +02:00
parent aa5a72fb37
commit 2c1627c2f3
+1 -3
View File
@@ -1,8 +1,6 @@
import logging
import re
import requests
from requests.exceptions import RequestException
import yaml
import boto.ec2
logger = logging.getLogger(__name__)
@@ -27,7 +25,7 @@ class AWSConnection:
return
if r.ok:
try:
content = yaml.load(r.content)
content = r.json()
self.instance_id = content['instanceId']
self.region = content['region']
except Exception as e: