Skip to content

Commit 1b27ffe

Browse files
authored
Merge pull request ceph#65977 from rhcs-dashboard/fix-73563-main
mgr/dashboard: fix multisite wizard realm configuration mode Reviewed-by: Afreen Misbah <[email protected]> Reviewed-by: Naman Munet <[email protected]>
2 parents 3aef9fc + fe884ae commit 1b27ffe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-wizard/rgw-multisite-wizard.component.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ interface DaemonStats {
3737
};
3838
}
3939

40+
interface RealmsInfo {
41+
default_info: string;
42+
realms: string[];
43+
}
44+
4045
interface EndpointInfo {
4146
hostname: string;
4247
port: number;
@@ -153,8 +158,8 @@ export class RgwMultisiteWizardComponent extends BaseModal implements OnInit {
153158
this.stepsToSkip[step.label] = false;
154159
});
155160

156-
this.rgwRealmService.list().subscribe((realms: string[]) => {
157-
this.realmList = realms;
161+
this.rgwRealmService.list().subscribe((realmsInfo: RealmsInfo) => {
162+
this.realmList = realmsInfo?.realms || [];
158163
this.showConfigType = this.realmList.length > 0;
159164
if (this.showConfigType) {
160165
this.multisiteSetupForm.get('selectedRealm')?.setValue(this.realmList[0]);

0 commit comments

Comments
 (0)