Swift client import error
Modify swift client import to work with newer versions (>= 1.7.4). Correct this error : swauth-cleanup-tokens -A https://swift.example.org/auth/ -K swauthkey --purge=account1 Traceback (most recent call last): File "/usr/bin/swauth-cleanup-tokens", line 28, in <module> from swift.common.client import Connection, ClientException ImportError: No module named client
This commit is contained in:
parent
cbe34c622f
commit
5bd5595a80
@ -25,8 +25,7 @@ from optparse import OptionParser
|
||||
from sys import argv, exit
|
||||
from time import sleep, time
|
||||
|
||||
from swift.common.client import Connection, ClientException
|
||||
|
||||
from swiftclient.client import Connection, ClientException
|
||||
|
||||
if __name__ == '__main__':
|
||||
gettext.install('swauth', unicode=1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user