Repair creating an ironicclient instance
Session is now required and can only be automatically created via client.get_client. Switch to using get_client. Change-Id: I0db7a95c4a99fe4157b3623a14135eb7b5dd69d9
This commit is contained in:
parent
31234a301d
commit
974838e37e
|
@ -42,13 +42,13 @@ def ironicclient(request):
|
||||||
cacert = getattr(settings, 'OPENSTACK_SSL_CACERT', DEFAULT_CACERT)
|
cacert = getattr(settings, 'OPENSTACK_SSL_CACERT', DEFAULT_CACERT)
|
||||||
ironic_url = base.url_for(request, IRONIC_CLIENT_CLASS_NAME)
|
ironic_url = base.url_for(request, IRONIC_CLIENT_CLASS_NAME)
|
||||||
|
|
||||||
return client.Client(1,
|
return client.get_client(1,
|
||||||
ironic_url,
|
endpoint=ironic_url,
|
||||||
os_ironic_api_version=DEFAULT_IRONIC_API_VERSION,
|
os_ironic_api_version=DEFAULT_IRONIC_API_VERSION,
|
||||||
project_id=request.user.project_id,
|
project_id=request.user.project_id,
|
||||||
token=request.user.token.id,
|
token=request.user.token.id,
|
||||||
insecure=insecure,
|
insecure=insecure,
|
||||||
cacert=cacert)
|
cacert=cacert)
|
||||||
|
|
||||||
|
|
||||||
def node_list(request):
|
def node_list(request):
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixed ``_construct_http_client() takes at least 1 argument`` when creating
|
||||||
|
an ironic client instance.
|
Loading…
Reference in New Issue