Last active
August 29, 2015 14:03
-
-
Save idvoretskyi/950b4eb5a530807fd66a to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env python | |
| from novaclient.client.v1_1 import Client | |
| """ | |
| Enter necessary data here | |
| """ | |
| VERSION = raw_input('Enter keystone version number: ') | |
| USERNAME = raw_input('Enter openstack username: ') | |
| PASSWORD = raw_input('Enter openstack password: ') | |
| PROJECT_ID = raw_input('Enter openstack project name: ') | |
| AUTH_URL = raw_input('Enter keystone API endroid URL: ') | |
| nova = Client(VERSION, USERNAME, PASSWORD, PROJECT_ID, AUTH_URL) | |
| """ | |
| List flavors | |
| """ | |
| print nova.flavors.list() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment