Werk #9430: Fix creating SSHFS mount points
| Component | Firmware |
| Title | Fix creating SSHFS mount points |
| Date | Mar 11, 2022 |
| Level | Trivial Change |
| Class | Bug Fix |
| Compatibility | Compatible - no manual interaction needed |
| Appliance Version | 1.4.19 |
Trying to creating a SSHFS mount with the version 1.4.18 always failed. When configuring such a mount, this resulted in an error message like this in the syslog:
Mar 11 19:53:25 cma webconfd: Hook Exception mounts: Traceback (most recent call last):#012 File "/usr/lib/python2.7/cma/__init__.py", line 274, in execute_hooks#012 g_hooks[hook_ident]['handler']()#012 File "/usr/share/cma/hooks/mounts.py", line 236, in hook#012 configure_via_fstab(mount_ident, mount)#012 File "/usr/share/cma/hooks/mounts.py", line 210, in configure_via_fstab#012 write_sshfs_key_file(mount_ident, attrs)#012 File "/usr/share/cma/hooks/mounts.py", line 150, in write_sshfs_key_file#012 f.write(ssh_key)#012TypeError: expected a string or other character buffer object