Skip to content

Commit fe884ae

Browse files
committed
mgr/dashboard: fix multisite wizard realm configuration mode
The option to select an existing realm for replication is not coming up in the wizard even though a realm created and eligible for replication. Fixes: https://tracker.ceph.com/issues/73563 Signed-off-by: Aashish Sharma <[email protected]>
1 parent fe52553 commit fe884ae

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)