Skip to content

Instantly share code, notes, and snippets.

@mnaser
Created April 21, 2016 13:46
Show Gist options
  • Select an option

  • Save mnaser/962ee3a26a2c7924c7de71a339caaa32 to your computer and use it in GitHub Desktop.

Select an option

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)
#!/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