From abf682f25b9a249690ad3496852f917804a88032 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 14 Nov 2024 14:05:14 +0900 Subject: [PATCH] Allow s3 backend The allowed backend types were not updated when s3 backend was re-added by 40315729bc455bfb3dee4abde09e0d8556d96984 . Closes-Bug: #2088137 Change-Id: I61ea8b88cbe49574c82db8d7398a43c99c18fd4d (cherry picked from commit a13b64fcdf1d514ebd7e7f63b146afa484258074) (cherry picked from commit e3f8a455dcce82873fda9e7ffda543c99fd54fa9) --- manifests/api.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/api.pp b/manifests/api.pp index 888eac53..9c7ab2bb 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -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.") } }