Skip to content

Commit 532fbcf

Browse files
committed
mgr/dashboard: KiB not supported size for namespace creation
Fixes https://tracker.ceph.com/issues/70106 Signed-off-by: Afreen Misbah <[email protected]>
1 parent 5534356 commit 532fbcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class NvmeofNamespacesFormComponent implements OnInit {
3838
nsForm: CdFormGroup;
3939
subsystemNQN: string;
4040
rbdPools: Array<Pool> = null;
41-
units: Array<string> = ['KiB', 'MiB', 'GiB', 'TiB'];
41+
units: Array<string> = ['MiB', 'GiB', 'TiB'];
4242
nsid: string;
4343
currentBytes: number;
4444
invalidSizeError: boolean;
@@ -121,7 +121,7 @@ export class NvmeofNamespacesFormComponent implements OnInit {
121121
validators: [Validators.required]
122122
}),
123123
image_size: new UntypedFormControl(1, [CdValidators.number(false), Validators.min(1)]),
124-
unit: new UntypedFormControl(this.units[2]),
124+
unit: new UntypedFormControl(this.units[1]),
125125
nsCount: new UntypedFormControl(this.MAX_NAMESPACE_CREATE, [
126126
Validators.required,
127127
Validators.max(this.MAX_NAMESPACE_CREATE),

0 commit comments

Comments
 (0)