Skip to content
Snippets Groups Projects
Commit 7f3029ac authored by Edward Hicks's avatar Edward Hicks :8ball:
Browse files

string not bytes

parent 74d559dd
No related branches found
No related tags found
No related merge requests found
Pipeline #92216 passed
......@@ -293,7 +293,7 @@ else:
printLog("Retrieving EC2 instance ID", loglevels.INFO)
try:
instid = urllib.request.urlopen("http://169.254.169.254/latest/meta-data/instance-id")
Session['ec2id'] = instid.read()
Session['ec2id'] = str(instid.read())
except Exception as e:
printLog(e)
cleanup()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment