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:
jgrmnprz 2013-06-20 15:40:37 +03:00
parent cbe34c622f
commit 5bd5595a80
1 changed files with 1 additions and 2 deletions

View File

@ -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)