]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: fix create osds step failing on the default option
authorNizamudeen A <nia@redhat.com>
Thu, 6 Apr 2023 06:37:20 +0000 (12:07 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 6 Apr 2023 06:37:20 +0000 (12:07 +0530)
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 <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.ts

index 65eb2e4a6aaf4e70dbca46e4b66cef25ccc7040b..dc455ca0629aa6a8813449c540cd6bd03b50db34 100644 (file)
@@ -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) => {