From 0084299273bd3702b55038d02523a7ad3a1f49cc 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 --- .../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 b5bf6a779b0..60024884acb 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 1e3715c733b..0b1f4e92a9e 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.39.5