]> www.vanbest.org Git - motioneye-debian/commitdiff
smbctl: no username fix
authorCalin Crisan <ccrisan@gmail.com>
Thu, 21 Dec 2017 08:08:27 +0000 (10:08 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Thu, 21 Dec 2017 08:08:27 +0000 (10:08 +0200)
motioneye/smbctl.py

index da3384082009e68c45be664f61373e9a186166c1..99319619e2f1d5d5fea077311edebbbe7f3ce29b 100644 (file)
@@ -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
             })