diff --git a/lib/services/trustedcluster.go b/lib/services/trustedcluster.go index 5b47477e328..4d14300be6c 100644 --- a/lib/services/trustedcluster.go +++ b/lib/services/trustedcluster.go @@ -441,7 +441,7 @@ const RoleMapSchema = `{ // schema for extensions. func GetTrustedClusterSchema(extensionSchema string) string { var trustedClusterSchema string - if trustedClusterSchema == "" { + if extensionSchema == "" { trustedClusterSchema = fmt.Sprintf(TrustedClusterSpecSchemaTemplate, RoleMapSchema, "") } else { trustedClusterSchema = fmt.Sprintf(TrustedClusterSpecSchemaTemplate, RoleMapSchema, ","+extensionSchema)