From b9042704fb9548d28c99896f76a405559eb17038 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 2 May 2013 15:44:49 -0400 Subject: [PATCH] update get_slices() --- plstackapi/core/api/slices.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plstackapi/core/api/slices.py b/plstackapi/core/api/slices.py index a0cc8f8..eda2249 100644 --- a/plstackapi/core/api/slices.py +++ b/plstackapi/core/api/slices.py @@ -1,5 +1,6 @@ import re from types import StringTypes +from django.contrib.auth import authenticate from plstackapi.openstack.client import OpenStackClient from plstackapi.openstack.driver import OpenStackDriver from plstackapi.core.api.auth import auth_check @@ -80,7 +81,8 @@ def delete_slice(auth, filter={}): return 1 def get_slices(auth, filter={}): - client = auth_check(auth) + user = authenticate(username=auth.get('username'), + password=auth.get('password')) if 'site' in filter: sites = _get_sites(filter.get('site')) if sites: filter['site'] = sites[0] -- 2.43.0