Skip to content

Instantly share code, notes, and snippets.

@rconradharris
Created August 7, 2014 17:15
Show Gist options
  • Save rconradharris/f40f7789f41d3dba9989 to your computer and use it in GitHub Desktop.
Save rconradharris/f40f7789f41d3dba9989 to your computer and use it in GitHub Desktop.
Rackspace Flavor-List using Novaclient
import novaclient.auth_plugin
from novaclient.v1_1 import client
novaclient.auth_plugin.discover_auth_systems()
auth_plugin = novaclient.auth_plugin.load_plugin(AUTH_SYSTEM)
c = client.Client(USER,
PASS,
TENANT,
AUTH_URL,
auth_plugin=auth_plugin,
auth_system=AUTH_SYSTEM,
region_name=REGION_NAME,
bypass_url=BYPASS_URL)
c.authenticate()
print c.flavors.list()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment