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$
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 Add("prefix" , prefix) Add("delimiter" , delim) Add("marker" , marker) Add("format" , "json") Add("limit" , fmt.Sprintf("%d", limit))
=== 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.
params.
params.
+ params.
if limit > 0 {
params.
}
~/go/src/ launchpad. net/goose$