cloudnull/turbolift — pull request #33 by knabar (2013-11-28 10:03:45+00:00)
Title: Import get_new_token from correct module

This is to fix the following exception, caused by calling `get_new_token` on the wrong module

MESSAGE: Forced Re-authentication is happening.
Processing - [ | ] - Number of Jobs in Queue = 79722 MESSAGE: Forced Re-authentication is happening.
Processing - [ / ] - Number of Jobs in Queue = 79722 MESSAGE: Forced Re-authentication is happening.
Processing - [ - ] - Number of Jobs in Queue = 79722 Failed Operation. ADDITIONAL DATA: /local/vol00/home/[snip]
turbolift will retry
TB: Traceback (most recent call last):
File "/usr/local/lib64/python2.6/site-packages/turbolift-2.0.3-py2.6.egg/turbolift/methods/__init__.py", line 100, in operation
yield retry
File "/usr/local/lib64/python2.6/site-packages/turbolift-2.0.3-py2.6.egg/turbolift/clouderator/actions.py", line 565, in object_putter
retry=retry)
File "/usr/local/lib64/python2.6/site-packages/turbolift-2.0.3-py2.6.egg/turbolift/clouderator/actions.py", line 227, in _putter
self.resp_exception(resp=resp, rty=retry)
File "/usr/local/lib64/python2.6/site-packages/turbolift-2.0.3-py2.6.egg/turbolift/clouderator/actions.py", line 42, in resp_exception
self.payload['headers']['X-Auth-Token'] = auth.get_new_token()
AttributeError: 'module' object has no attribute 'get_new_token'