From c2f12dc648354e5df58ee8367cfd4016524e2236 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Wed, 6 Jun 2018 13:23:29 +0200 Subject: [PATCH] Use enums for smbvers to prevent incorrect input --- PVE/Storage/CIFSPlugin.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/Storage/CIFSPlugin.pm b/PVE/Storage/CIFSPlugin.pm index cb7c844..2124c87 100644 --- a/PVE/Storage/CIFSPlugin.pm +++ b/PVE/Storage/CIFSPlugin.pm @@ -104,8 +104,9 @@ sub properties { maxLength => 256, }, smbversion => { - description => "", + description => "SMB protokoll version", type => 'string', + enum => ['2.0', '2.1', '3.0'], optional => 1, }, };