Last active
August 29, 2015 14:10
-
-
Save xarses/ac835851199a902f785a to your computer and use it in GitHub Desktop.
using curl again with auth'd fuel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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