diff --git a/doc/source/command-objects/image.rst b/doc/source/command-objects/image.rst index 7fc33c697c..9564f099e6 100644 --- a/doc/source/command-objects/image.rst +++ b/doc/source/command-objects/image.rst @@ -79,7 +79,7 @@ Create/upload an image .. option:: --disk-format Image disk format. The supported options are: ami, ari, aki, vhd, vmdk, - raw, qcow2, vhdx, vdi, and iso. The default format is: raw + raw, qcow2, vhdx, vdi, iso, and ploop. The default format is: raw .. option:: --size @@ -339,7 +339,7 @@ Set image properties .. option:: --disk-format Image disk format. The supported options are: ami, ari, aki, vhd, vmdk, - raw, qcow2, vhdx, vdi, and iso. + raw, qcow2, vhdx, vdi, iso, and ploop. .. option:: --size diff --git a/openstackclient/image/v1/image.py b/openstackclient/image/v1/image.py index eb79cd2fed..1f239b6701 100644 --- a/openstackclient/image/v1/image.py +++ b/openstackclient/image/v1/image.py @@ -39,7 +39,7 @@ from openstackclient.i18n import _ DEFAULT_CONTAINER_FORMAT = 'bare' DEFAULT_DISK_FORMAT = 'raw' DISK_CHOICES = ["ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vhdx", - "vdi", "iso"] + "vdi", "iso", "ploop"] LOG = logging.getLogger(__name__) diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index 1d16760556..55eb7eb104 100644 --- a/openstackclient/image/v2/image.py +++ b/openstackclient/image/v2/image.py @@ -33,7 +33,7 @@ from openstackclient.identity import common DEFAULT_CONTAINER_FORMAT = 'bare' DEFAULT_DISK_FORMAT = 'raw' DISK_CHOICES = ["ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vhdx", - "vdi", "iso"] + "vdi", "iso", "ploop"] LOG = logging.getLogger(__name__) diff --git a/releasenotes/notes/bug-1650342-22cb88ef37a41872.yaml b/releasenotes/notes/bug-1650342-22cb88ef37a41872.yaml new file mode 100644 index 0000000000..345d683125 --- /dev/null +++ b/releasenotes/notes/bug-1650342-22cb88ef37a41872.yaml @@ -0,0 +1,5 @@ +--- +features: + - Add ``ploop`` as a valid disk format choice for ``image create`` + and ``image set`` commands. + [Bug `1650342 `_]