An API request to create a floating IP reservation is expected to pass the required_floatingips parameter as a list, not as a string. Modify the CLI to parse required_floatingips as a JSON array so it can be passed to the API in the right format. Change-Id: Ia84ceb881f0889266c8f0349a1ffb047597bac2d Closes-Bug: #1843258
11 lines
504 B
YAML
11 lines
504 B
YAML
---
|
|
fixes:
|
|
- |
|
|
Parse the ``required_floatingips`` command-line parameter as a list instead
|
|
of a string, to pass it to the API in the expected format. For example,
|
|
this parameter can be used in the following fashion:
|
|
|
|
``blazar lease-create --reservation 'resource_type=virtual:floatingip,network_id=81fabec7-00ae-497a-b485-72f4bf187d3e,amount=2,required_floatingips=["172.24.4.2","172.24.4.3"]' fip-lease``
|
|
|
|
For more details, see `bug 1843258 <https://launchpad.net/bugs/1843258>`_.
|