Last active
July 21, 2016 14:25
-
-
Save seanhandley/dca0ac319f5c989aa0742bb80b613c99 to your computer and use it in GitHub Desktop.
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
clouds: | |
datacentred: | |
auth: | |
username: YOUR_USERNAME | |
password: YOUR_PASSWORD | |
project_name: YOUR_PROJECT_NAME | |
auth_url: https://compute.datacentred.io:5000/v2.0/ |
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
import shade | |
cloud = shade.openstack_cloud(cloud='datacentred') | |
print cloud.list_flavors() # Should see lots of output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.