Follow up for nova-manage image property commands

This a follow up for change Ic8783053778cf4614742186e94059d5675121db1
and corrects the 'image_property set --property' arg format in the
hw_machine_type doc. Newline formats in the nova-manage CLI doc is
cleaned up to be consistent throughout and unnecessary () is removed
from the ImagePropertyCommands class.

Related to blueprint libvirt-device-bus-model-update

Change-Id: I5b67e9ae5125f6dad68cae7ac0601ac5b02e74b3
This commit is contained in:
melanie witt 2022-02-24 19:45:42 +00:00
parent 6085783c64
commit 453c11e05d
3 changed files with 9 additions and 2 deletions

View File

@ -165,4 +165,5 @@ To update the stored image properties of an instance:
.. code-block:: shell
$ nova-manage image_property set $instance_uuid --property $property
$ nova-manage image_property set \
$instance_uuid --property $property_name=$property_value

View File

@ -521,6 +521,7 @@ This command should be run before ``nova-manage db sync``.
.. _man-page-cells-v2:
Cells v2 Commands
=================
@ -1144,6 +1145,7 @@ Delete a host by the given host name and the given cell UUID.
* - 4
- The host with the specified name has instances (host not empty).
Placement Commands
==================
@ -1531,6 +1533,7 @@ command.
* - 6
- Instance is not attached to volume
Libvirt Commands
================
@ -1668,6 +1671,7 @@ within an environment.
* - 3
- Instances found without ``hw_machine_type`` set
Image Property Commands
=======================
@ -1754,12 +1758,14 @@ for example.
* - 5
- The provided image property value is invalid
See Also
========
:doc:`nova-policy(1) <nova-policy>`,
:doc:`nova-status(1) <nova-status>`
Bugs
====

View File

@ -3192,7 +3192,7 @@ class VolumeAttachmentCommands(object):
return 1
class ImagePropertyCommands():
class ImagePropertyCommands:
@action_description(_("Show the value of an instance image property."))
@args(