openstack-python-openstackc.../openstackclient
Stephen Finucane 29a7c9afce image: Unset properties rather than setting to None
Currently, we attempt to unset an image property by setting it to None.
This doesn't work for known properties and is rightly rejected by the
Glance API with the following error:

  BadRequestException: 400: Client Error for url:
  http://172.20.4.87/image/v2/images/368c5751-2b0b-4a38-a255-fd146fe52d31,
  Bad Request

The solution is to actually unset the field by deleting it.

Change-Id: Ie156bedbe0f9244f82c81401679706f484caf9aa
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Story: #2008463
Task: #41493
2020-12-22 17:11:32 +00:00
..
api Remove usage of six 2020-10-07 02:15:25 +00:00
common Merge "Remove None valued network quota entries" 2020-12-01 13:51:20 +00:00
compute Merge "trivial: Cleanup docs for 'server rebuild'" 2020-12-05 21:27:53 +00:00
identity Make use of comparable 'FormattableColumn' subclasses 2020-12-09 15:17:25 +00:00
image image: Unset properties rather than setting to None 2020-12-22 17:11:32 +00:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network Add "fields" parameter to ListPort query 2020-11-18 17:42:14 +00:00
object Add storage policy option to create container command 2020-02-19 10:08:48 +13:00
tests image: Unset properties rather than setting to None 2020-12-22 17:11:32 +00:00
volume Allow to resize in-use volumes 2020-11-11 09:18:49 +00:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Remove usage of six 2020-10-07 02:15:25 +00:00