sharing: put file path between quotation marks

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Benedek Nagy authored and Sunil Mohan Adapa committed 2022-04-25 15:21:45 -07:00
1 parent e8b224982f
commit 0b2125aad6
2 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -57,7 +57,7 @@ def load_augeas():
def subcommand_add(arguments):
"""Add a share to Apache configuration."""
name = arguments.name
path = arguments.path
path = '"' + arguments.path + '"'
groups = arguments.groups
is_public = arguments.is_public
url = '/share/' + name
@@ -154,7 +154,7 @@ def _list(aug=None):
name = _get_name_from_url(url)
shares.append({
'name': name,
'path': path,
'path': path.strip('"'),
'url': '/share/' + name
})
except ValueError: