Skip to content

Commit

Permalink
Merge pull request #562 from parth-gr/object-4.15
Browse files Browse the repository at this point in the history
Bug 2262052: object: fix the default multisite zonegroup creation
  • Loading branch information
agarwal-mudit authored Feb 13, 2024
2 parents 3e3dba0 + 6d967e2 commit 7f487f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/operator/ceph/object/objectstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,11 @@ func createMultisiteConfigurations(objContext *Context, configType, configTypeAr
args = append([]string{configType}, args...)
args = append(args, configTypeArg)
// get the multisite config before creating
output, getConfigErr := RunAdminCommandNoMultisite(objContext, true, configType, "get", configTypeArg)
configTypeArgs := []string{configType, "get", configTypeArg}
if configType == "zonegroup" {
configTypeArgs = append(configTypeArgs, fmt.Sprintf("--rgw-realm=%s", objContext.Realm))
}
output, getConfigErr := RunAdminCommandNoMultisite(objContext, true, configTypeArgs...)
if getConfigErr == nil {
return nil
}
Expand Down

0 comments on commit 7f487f9

Please sign in to comment.