diff --git a/targetd/backends/zfs.py b/targetd/backends/zfs.py index b35f994..d22b7fa 100755 --- a/targetd/backends/zfs.py +++ b/targetd/backends/zfs.py @@ -26,7 +26,7 @@ pools_fs = dict() zfs_cmd = "" zfs_enable_copy = False -ALLOWED_DATASET_NAMES = re.compile("^[A-Za-z0-9][A-Za-z0-9_.\-]*$") +ALLOWED_DATASET_NAMES = re.compile("^[A-Za-z0-9][A-Za-z0-9_.-]*$") class VolInfo(object):