Comment 2 for bug 1209003

Revision history for this message
Francois Deppierraz (francois-ctrlaltdel) wrote :

Yes, indeed, it seems that the goose library fails to explicitely ask for JSON when it lists a swift container.

The following hack works:

~/go/src/launchpad.net/goose$ bzr diff
=== modified file 'swift/swift.go'
--- swift/swift.go 2013-02-11 05:01:34 +0000
+++ swift/swift.go 2013-08-15 15:12:51 +0000
@@ -134,6 +134,7 @@
  params.Add("prefix", prefix)
  params.Add("delimiter", delim)
  params.Add("marker", marker)
+ params.Add("format", "json")
  if limit > 0 {
   params.Add("limit", fmt.Sprintf("%d", limit))
  }

~/go/src/launchpad.net/goose$