From 4ac8379db629c5a81ada07c654dd6a0622c0b366 Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Mon, 1 Apr 2019 14:50:44 +0000 Subject: [PATCH] mgr/dashboard: Fix NFS squash default value Fixes: http://tracker.ceph.com/issues/39064 Signed-off-by: Tiago Melo (cherry picked from commit 0084299273bd3702b55038d02523a7ad3a1f49cc) --- .../src/app/ceph/nfs/nfs-form/nfs-form.component.spec.ts | 2 +- .../frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.spec.ts index b5bf6a779b0e..60024884acb7 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.spec.ts @@ -100,7 +100,7 @@ describe('NfsFormComponent', () => { pseudo: '', sec_label_xattr: 'security.selinux', security_label: false, - squash: 'None', + squash: '', tag: '', transportTCP: true, transportUDP: true diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts index 128782fc9611..cbf35190027e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts @@ -174,7 +174,7 @@ export class NfsFormComponent implements OnInit { access_type: new FormControl('RW', { validators: [Validators.required] }), - squash: new FormControl('None', { + squash: new FormControl('', { validators: [Validators.required] }), transportUDP: new FormControl(true, { -- 2.47.3