A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

© 余永健 中级黑马   /  2015-2-8 14:20  /  636 人查看  /  0 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

当输入swift stat 或者swift list命令就会出错

Traceback (most recent call last):
  File "/usr/local/bin/swift", line 7, in <module>
    execfile(__file__)
  File "/root/python-swiftclient/bin/swift", line 1491, in <module>
    globals()['st_%s' % args[0]](parser, argv[1:], thread_manager)
  File "/root/python-swiftclient/bin/swift", line 657, in st_stat
错误如下:
    command_helpers.stat_account(conn, options, thread_manager)
  File "/root/python-swiftclient/swiftclient/command_helpers.py", line 18, in stat_account
    headers = conn.head_account()
  File "/root/python-swiftclient/swiftclient/client.py", line 1221, in head_account
    return self._retry(None, head_account)
  File "/root/python-swiftclient/swiftclient/client.py", line 1173, in _retry
    self.url, self.token = self.get_auth()
  File "/root/python-swiftclient/swiftclient/client.py", line 1147, in get_auth
    insecure=self.insecure)
  File "/root/python-swiftclient/swiftclient/client.py", line 345, in get_auth
    insecure=insecure)
  File "/root/python-swiftclient/swiftclient/client.py", line 277, in get_keystoneclient_2_0
    auth_url=auth_url, insecure=insecure)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 66, in __init__
    super(Client, self).__init__(endpoint=endpoint, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'insecure'
是什么原因有人知道吗求指导

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马