Fix key errors for rbd-pool-name and ec-rbd-metadata-pool

The existing code assumes event.params['rbd-pool-name'] and
event.params['ec-rbd-metadata-pool'] have a key. Set an empty string by
default to be filled by other part of the code.

Follow-up of Iec275190854edcc85915d93db233f444c92fbb17

Closes-Bug: #2042419
Change-Id: I819f0d4456530ace8162456dec1f2fcb7fa95e7f
This commit is contained in:
Nobuto Murata 2023-11-06 13:09:30 +00:00
parent 82779e5ff9
commit fad259da9a

View File

@ -42,9 +42,11 @@ create-target:
description: "Image name "
rbd-pool-name:
type: string
default: ""
description: "Name of ceph pool to use to back target "
ec-rbd-metadata-pool:
type: string
default: ""
description: "Name of the metadata pool to use with rbd-pool-name if rbd-pool-name is erasure coded."
client-initiatorname:
type: string