Fix py3 compatibility in k8s-node-evaciator

Change-Id: I3c12f6b354e670d334bccd7e82fd77e356a91784
This commit is contained in:
Sergey Reshetnyak 2017-01-30 10:38:04 +03:00
parent 30d58caddd
commit e5e3bc6ca5
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def nova_live_migrate(node):
def get_http_header(TOKEN_FILE):
try:
token = file(TOKEN_FILE, 'r').read()
token = open(TOKEN_FILE, 'r').read()
except IOError:
exit('Unable to open token file')
header = {'Authorization': "Bearer {}".format(token)}