From: Calin Crisan Date: Thu, 21 Dec 2017 08:08:27 +0000 (+0200) Subject: smbctl: no username fix X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=aef68011a811b681187d820dc2121807f7a2e5c3;p=motioneye-debian smbctl: no username fix --- diff --git a/motioneye/smbctl.py b/motioneye/smbctl.py index da33840..9931961 100644 --- a/motioneye/smbctl.py +++ b/motioneye/smbctl.py @@ -99,14 +99,14 @@ def list_mounts(): username = match.group(1) else: - username = None + username = '' logging.debug('found smb mount "//%s/%s" at "%s"' % (server, share, mount_point)) mounts.append({ 'server': server.lower(), 'share': share.lower(), - 'username': username.lower(), + 'username': username, 'mount_point': mount_point })