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)
|
||||
ironic_url = base.url_for(request, IRONIC_CLIENT_CLASS_NAME)
|
||||
|
||||
return client.Client(1,
|
||||
ironic_url,
|
||||
os_ironic_api_version=DEFAULT_IRONIC_API_VERSION,
|
||||
project_id=request.user.project_id,
|
||||
token=request.user.token.id,
|
||||
insecure=insecure,
|
||||
cacert=cacert)
|
||||
return client.get_client(1,
|
||||
endpoint=ironic_url,
|
||||
os_ironic_api_version=DEFAULT_IRONIC_API_VERSION,
|
||||
project_id=request.user.project_id,
|
||||
token=request.user.token.id,
|
||||
insecure=insecure,
|
||||
cacert=cacert)
|
||||
|
||||
|
||||
def node_list(request):
|
||||
|
5
releasenotes/notes/get-client-e30e3b05eb9901ca.yaml
Normal file
5
releasenotes/notes/get-client-e30e3b05eb9901ca.yaml
Normal file
@ -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
Block a user