chmouel / upcs

Upload to OpenStack Swift with curl easily
62 stars 13 forks source link

Uploading to dfw1 even if container is stored on ord1 #10

Open DavidBennettPIO opened 11 years ago

DavidBennettPIO commented 11 years ago

Just a small (but breaking) issue.

Im trying to upload files to my container hosted in Chicago (ORD) but it always tries to upload them to https://storage101.dfw1.clouddrive.com/v1/ and not https://storage101.ord1.clouddrive.com/v1/

I notice ${StorageUrl} at https://github.com/chmouel/upcs/blob/master/upcs#L183 but I cant see where it is set.

In ~/.config/rackspace-cloud/config I have:

RCLOUD_API_USER=*** RCLOUD_API_KEY=** AUTH_SERVER=https://auth.api.rackspacecloud.com/v1.0

chmouel commented 11 years ago

yep unfortunately upcs is not supporting v2.0 of auth, I may add it soon but parsing json sucks in shell :(

chmouel commented 11 years ago

There is some preliminary support for 2.0 auth in upcs but no region in there yet.