Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Import get_new_token from correct module #33

Merged
merged 1 commit into from
Nov 28, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion turbolift/clouderator/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import turbolift.utils.http_utils as http
import turbolift.utils.report_utils as report

from turbolift.authentication.authentication import get_new_token

from turbolift import ARGS


Expand All @@ -39,7 +41,7 @@ def resp_exception(self, resp, rty):
log=True
)
basic.stupid_hack()
self.payload['headers']['X-Auth-Token'] = auth.get_new_token()
self.payload['headers']['X-Auth-Token'] = get_new_token()
rty()
elif resp.status == 404:
report.reporter(
Expand Down