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)
(cherry picked from commit abf682f25b)
(cherry picked from commit 5c809fe926)
This commit is contained in:
Takashi Kajinami
2024-11-14 14:05:14 +09:00
parent 39b9064550
commit 04e7c3bbe3

View File

@@ -414,7 +414,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.")
}
}