Change keystone authorization
In fuel-9 change authorization method to keystone on controller node. Change-Id: I93935648164e2ad203256360373f8029eed9d464
This commit is contained in:
parent
430df34d6c
commit
04c37007e9
|
@ -11,15 +11,17 @@
|
|||
# under the License.
|
||||
|
||||
import glanceclient.client
|
||||
import keystoneclient.v2_0.client as ksclient
|
||||
import keystoneclient.client as ksclient
|
||||
import neutronclient.neutron.client
|
||||
|
||||
|
||||
def _get_keystone(username, password, tenant_name, auth_url):
|
||||
return ksclient.Client(username=username,
|
||||
klient = ksclient.Client(auth_url=auth_url)
|
||||
klient.authenticate(
|
||||
username=username,
|
||||
password=password,
|
||||
tenant_name=tenant_name,
|
||||
auth_url=auth_url)
|
||||
tenant_name=tenant_name)
|
||||
return klient
|
||||
|
||||
|
||||
def _get_glance(version=2, endpoint=None, token=None):
|
||||
|
|
Loading…
Reference in New Issue