blob: a2d0b23ec789d1d4a3adb421f3c9cc98297029ff [file] [log] [blame]
Tony Mackaae0bf02013-04-09 09:43:50 -04001from plstackapi.openstack.client import OpenStackClient
2from plstackapi.openstack.driver import OpenStackDriver
Tony Mackf1c12242013-04-09 16:08:43 -04003from plstackapi.core.api.auth import auth_check
4from plstackapi.core.models import Flavor
Tony Mackaae0bf02013-04-09 09:43:50 -04005
6
7def add_flavor(auth, fields={}):
8 """not implemented"""
9 return
10
11def delete_flavor(auth, filter={}):
12 """not implemented"""
13 return 1
14
15def get_flavors(auth, filter={}):
16 auth_check(auth)
17 flavors = Flavor.objects.filter(**filter)
18 return flavors
19
20
21