Tony Mack | aae0bf0 | 2013-04-09 09:43:50 -0400 | [diff] [blame] | 1 | from plstackapi.openstack.client import OpenStackClient |
| 2 | from plstackapi.openstack.driver import OpenStackDriver |
Tony Mack | f1c1224 | 2013-04-09 16:08:43 -0400 | [diff] [blame] | 3 | from plstackapi.core.api.auth import auth_check |
| 4 | from plstackapi.core.models import Flavor |
Tony Mack | aae0bf0 | 2013-04-09 09:43:50 -0400 | [diff] [blame] | 5 | |
| 6 | |
| 7 | def add_flavor(auth, fields={}): |
| 8 | """not implemented""" |
| 9 | return |
| 10 | |
| 11 | def delete_flavor(auth, filter={}): |
| 12 | """not implemented""" |
| 13 | return 1 |
| 14 | |
| 15 | def get_flavors(auth, filter={}): |
| 16 | auth_check(auth) |
| 17 | flavors = Flavor.objects.filter(**filter) |
| 18 | return flavors |
| 19 | |
| 20 | |
| 21 | |