From: Nizamudeen A Date: Thu, 6 Apr 2023 06:37:20 +0000 (+0530) Subject: mgr/dashboard: fix create osds step failing on the default option X-Git-Tag: v17.2.7~472^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F51007%2Fhead;p=ceph.git mgr/dashboard: fix create osds step failing on the default option the backend was reporting with a keyError which doesn't find the `encrypted` key. Fixes: https://tracker.ceph.com/issues/59319 Signed-off-by: Nizamudeen A (cherry picked from commit ca8b107cf2198ecf189b513ff75b9d5a9d9782b9) --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts index 65eb2e4a6aaf..dc455ca0629a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts @@ -81,7 +81,7 @@ export class CreateClusterComponent implements OnInit, OnDestroy { ngOnInit(): void { this.osdService.getDeploymentOptions().subscribe((options) => { this.deploymentOption = options; - this.selectedOption = { option: options.recommended_option }; + this.selectedOption = { option: options.recommended_option, encrypted: false }; }); this.stepTitles.forEach((stepTitle) => {