Created
April 21, 2016 13:46
-
-
Save mnaser/962ee3a26a2c7924c7de71a339caaa32 to your computer and use it in GitHub Desktop.
Small cURL wrapper which retrieves a Keystone token to make requests (must have all env variables configured and openstack CLI client installed)
This file contains hidden or 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/sh | |
| TOKEN=$(openstack token issue -f value -c id) | |
| curl -H "X-Auth-Token: $TOKEN" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment