Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Last active July 21, 2016 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanhandley/dca0ac319f5c989aa0742bb80b613c99 to your computer and use it in GitHub Desktop.
Save seanhandley/dca0ac319f5c989aa0742bb80b613c99 to your computer and use it in GitHub Desktop.
clouds:
datacentred:
auth:
username: YOUR_USERNAME
password: YOUR_PASSWORD
project_name: YOUR_PROJECT_NAME
auth_url: https://compute.datacentred.io:5000/v2.0/
import shade
cloud = shade.openstack_cloud(cloud='datacentred')
print cloud.list_flavors() # Should see lots of output
@seanhandley
Copy link
Author

Ensure that clouds.yaml is in the same directory as your python code - shade will by default look first in the current directory for the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment