Forwarding username and password to cue client
Cue now supports custom user authentication for rabbit clusters. This patch forwards authentication details (username and password to cue client). Change-Id: I4e5681595726b81db6fb8efd331c0109e524e267 implements: blueprint custom-default-user
This commit is contained in:
parent
e5db228d8e
commit
09c6138914
|
@ -55,9 +55,9 @@ def cluster_get(request, cluster_id):
|
|||
return cluster
|
||||
|
||||
|
||||
def cluster_create(request, name, nic, flavor, size):
|
||||
return cueclient(request).clusters.create(name, nic,
|
||||
flavor, size, 0)
|
||||
def cluster_create(request, name, nic, flavor, size, username, password):
|
||||
return cueclient(request).clusters.create(name, nic, flavor, size, 0,
|
||||
'plain', username, password)
|
||||
|
||||
|
||||
def delete_cluster(request, cluster_id):
|
||||
|
|
|
@ -141,7 +141,7 @@ class SetInstanceDetailsAction(workflows.Action):
|
|||
|
||||
class SetClusterDetails(workflows.Step):
|
||||
action_class = SetInstanceDetailsAction
|
||||
contributes = ("name", "flavor", "size", "network")
|
||||
contributes = ("name", "flavor", "size", "network", "username", "password")
|
||||
|
||||
|
||||
class CreateCluster(workflows.Workflow):
|
||||
|
@ -172,7 +172,8 @@ class CreateCluster(workflows.Workflow):
|
|||
context['size'], context['network'])
|
||||
|
||||
cluster_create(request, context['name'], context['network'],
|
||||
context['flavor'], context['size'])
|
||||
context['flavor'], context['size'],
|
||||
context['username'], context['password'])
|
||||
return True
|
||||
except Exception:
|
||||
exceptions.handle(request)
|
||||
|
|
Loading…
Reference in New Issue