]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix subvolume group edit size 56372/head
authorIvo Almeida <ialmeida@redhat.com>
Thu, 21 Mar 2024 16:13:48 +0000 (16:13 +0000)
committerIvo Almeida <ialmeida@redhat.com>
Thu, 21 Mar 2024 16:15:56 +0000 (16:15 +0000)
Removed the 'infinite' string which was set when no value was provided

Fixes: https://tracker.ceph.com/issues/65049
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.ts

index accbb61b7eeeb4ed64b4a85695a16425674ccc2b..ea677e5d68340f9624168a6d046457c0d3a999f3 100644 (file)
@@ -146,7 +146,6 @@ export class CephfsSubvolumegroupFormComponent extends CdForm implements OnInit
     const gid = this.subvolumegroupForm.getValue('gid');
     const mode = this.formatter.toOctalPermission(this.subvolumegroupForm.getValue('mode'));
     if (this.isEdit) {
-      const editSize = size === 0 ? 'infinite' : size;
       this.taskWrapper
         .wrapTaskAroundCall({
           task: new FinishedTask('cephfs/subvolume/group/' + URLVerbs.EDIT, {
@@ -156,7 +155,7 @@ export class CephfsSubvolumegroupFormComponent extends CdForm implements OnInit
             this.fsName,
             subvolumegroupName,
             pool,
-            String(editSize),
+            String(size),
             uid,
             gid,
             mode