Skip to content

Instantly share code, notes, and snippets.

@zackmdavis
Last active January 1, 2016 06:08
Show Gist options
  • Save zackmdavis/8102604 to your computer and use it in GitHub Desktop.
Save zackmdavis/8102604 to your computer and use it in GitHub Desktop.
Swift CLI utility troubles
# using cURL works fine ...
Jons-MacBook-Pro:deploy zmd$ curl -X GET -H "X-Auth-Token: $TOKEN" $SERVER/v1/$USER/Storage_Container_A/ -i
HTTP/1.1 200 OK
Content-Length: 58
X-Container-Object-Count: 3
Accept-Ranges: bytes
X-Timestamp: 1387591147.17947
X-Container-Bytes-Used: 47428
Content-Type: text/plain; charset=utf-8
X-Trans-Id: tx9b60e656fed54149a21b0-0052b88667
Date: Mon, 23 Dec 2013 18:52:23 GMT
deployment_status_pt2.patch
sampletext.txt
swiftstack.png
# But, e.g., this silently does nothing until manually terminated---
# Even though the syntax seems OK according to e.g. http://swiftstack.com/docs/faqs/operations.html
Jons-MacBook-Pro:deploy zmd$ swift -A $SERVER/auth/v1.0 -U $USER -K $PASSWORD stat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment