bouncestorage / swiftproxy

Access other storage backends via the Swift API
Apache License 2.0
31 stars 2 forks source link

swift list --lh fails #23

Closed kahing closed 9 years ago

kahing commented 9 years ago
Traceback (most recent call last):
  File "/usr/local/bin/swift", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/swiftclient/shell.py", line 1309, in main
    globals()['st_%s' % args[0]](parser, argv[1:], output)
  File "/usr/local/lib/python2.7/site-packages/swiftclient/shell.py", line 455, in st_list
    _print_stats(options, stats)
  File "/usr/local/lib/python2.7/site-packages/swiftclient/shell.py", line 382, in _print_stats
    date, xtime = item.get('last_modified').split('T')
AttributeError: 'int' object has no attribute 'split'

Looks like we are not returning the expected value in last_modified