git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update restapi to use OpenStackManager instead of OpenStackDriver
[plstackapi.git]
/
plstackapi
/
core
/
api
/
images.py
diff --git
a/plstackapi/core/api/images.py
b/plstackapi/core/api/images.py
index
8fd6141
..
ec18c11
100644
(file)
--- a/
plstackapi/core/api/images.py
+++ b/
plstackapi/core/api/images.py
@@
-1,7
+1,5
@@
from types import StringTypes
from types import StringTypes
-from plstackapi.openstack.client import OpenStackClient
-from plstackapi.openstack.driver import OpenStackDriver
-from plstackapi.core.api.auth import auth_check
+from django.contrib.auth import authenticate
from plstackapi.core.models import Image
def _get_images(filter):
from plstackapi.core.models import Image
def _get_images(filter):
@@
-26,7
+24,8
@@
def delete_image(auth, filter={}):
return 1
def get_images(auth, filter={}):
return 1
def get_images(auth, filter={}):
- auth_check(auth)
+ user = authenticate(username=auth.get('username'),
+ password=auth.get('password'))
images = _get_images(filter)
return images
images = _get_images(filter)
return images