зеркало из https://github.com/Azure/ARO-RP.git
marshalindent, and spaces not tabs, spaces look better
This commit is contained in:
Родитель
9b492f94c3
Коммит
f0c6e02346
|
@ -236,7 +236,7 @@ func (f *frontend) _putOrPatchOpenShiftCluster(ctx context.Context, log *logrus.
|
|||
doc.OpenShiftCluster.Properties.ClusterProfile.PullSecret = ""
|
||||
doc.OpenShiftCluster.Properties.ServicePrincipalProfile.ClientSecret = ""
|
||||
|
||||
b, err := json.MarshalIndent(converter.ToExternal(doc.OpenShiftCluster), "", "\t")
|
||||
b, err := json.MarshalIndent(converter.ToExternal(doc.OpenShiftCluster), "", " ")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ func (f *frontend) listInstallVersions(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
converter := f.apis[vars["api-version"]].OpenShiftVersionConverter
|
||||
|
||||
b, err := json.Marshal(converter.ToExternalList(([]*api.OpenShiftVersion)(versions)))
|
||||
b, err := json.MarshalIndent(converter.ToExternalList(([]*api.OpenShiftVersion)(versions)), "", " ")
|
||||
reply(log, w, nil, b, err)
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче