Skip to content

Instantly share code, notes, and snippets.

@xarses
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xarses/ac835851199a902f785a to your computer and use it in GitHub Desktop.
Save xarses/ac835851199a902f785a to your computer and use it in GitHub Desktop.
using curl again with auth'd fuel
#!/bin/bash
if [ -z $OS_TOKEN ] ; then
export OS_TOKEN=$(python -c 'from fuelclient.client import Client
print Client().auth_token')
echo got my own OS_TOKEN=${OS_TOKEN}
fi
curl -H "X-Auth-Token: $OS_TOKEN" $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment