inject_image_metadata plugin: Fix documentation

The properties and values given to the "inject" option must not be
quoted, otherwise the quotes become part of the values themselves.

Change-Id: Ibcb8b8488253f459f40e6d34f4221832b7ff3839
Closes-Bug: #2028895
This commit is contained in:
Cyril Roelandt
2023-12-13 04:13:40 +01:00
parent 9f896ab03d
commit dd9b3156cd

View File

@@ -557,7 +557,7 @@ required.
[inject_metadata_properties] [inject_metadata_properties]
ignore_user_roles = admin,... ignore_user_roles = admin,...
inject = "property1":"value1","property2":"value2",... inject = property1:value1,property2:value2,...
The first section, ``image_import_opts``, is used to enable the plugin by The first section, ``image_import_opts``, is used to enable the plugin by
specifying the plugin name as one of the elements of the list that is the specifying the plugin name as one of the elements of the list that is the
@@ -576,8 +576,7 @@ required.
* ``inject`` is a comma-separated list of properties and values that will be * ``inject`` is a comma-separated list of properties and values that will be
injected into the image record for the imported image. Each property and injected into the image record for the imported image. Each property and
value should be quoted and separated by a colon (':') as shown in the value should be separated by a colon (':') as shown in the example above.
example above.
2. If your use case is such that you don't want to allow end-users to create, 2. If your use case is such that you don't want to allow end-users to create,
modify, or delete metadata properties that you are injecting during the modify, or delete metadata properties that you are injecting during the