Allow s3 backend

The allowed backend types were not updated when s3 backend was re-added
by 40315729bc .

Closes-Bug: #2088137
Change-Id: I61ea8b88cbe49574c82db8d7398a43c99c18fd4d
(cherry picked from commit a13b64fcdf)
(cherry picked from commit e3f8a455dc)
This commit is contained in:
Takashi Kajinami 2024-11-14 14:05:14 +09:00
parent dc5b75dbf8
commit abf682f25b

View File

@ -425,7 +425,7 @@ class glance::api(
$enabled_backends_array.each |$backend| {
$backend_type = split($backend, /:/)[1]
unless $backend_type =~ /file|http|swift|rbd|cinder|vsphere/ {
unless $backend_type in ['file', 'http', 'swift', 'rbd', 'cinder', 's3', 'vsphere'] {
fail("\'${backend_type}\' is not a valid backend type.")
}
}