]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common/rgw: fix broken f-string in zone_create func
authorAdam King <adking@redhat.com>
Wed, 19 Jun 2024 18:46:24 +0000 (14:46 -0400)
committerAdam King <adking@redhat.com>
Fri, 7 Feb 2025 20:45:21 +0000 (15:45 -0500)
Or I guess I should say make it an f-string since the
"f" was mising despite using f-string syntax

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 009e20e59554284013bea2c6b1813d0779f80bd9)

src/python-common/ceph/rgw/rgwam_core.py

index 7041ea1544f0069c4cdc4b3e7b08152d0f0ca28a..bb8f8e971758c458384c2995b4269e4f5ad905f3 100644 (file)
@@ -776,7 +776,7 @@ class RGWAM:
 
         zonegroup = period.get_master_zonegroup()
         if not zonegroup:
-            raise RGWAMException('Cannot find master zonegroup of realm {realm_name}')
+            raise RGWAMException(f'Cannot find master zonegroup of realm {realm_name}')
 
         zone = self.create_zone(realm, zonegroup, rgw_spec.rgw_zone,
                                 False,  # secondary zone