canonical / testflinger

https://testflinger.readthedocs.io/en/latest/
GNU General Public License v3.0
11 stars 17 forks source link

Mount value needs to be converted to a string from Path object #347

Closed plars closed 1 month ago

plars commented 1 month ago

Description

Quick fix for a problem Kevin reported:

packages/testflinger_device_connectors/devices/muxpi/muxpi.py", line 383, in remote_mount
    self._run_control("sudo umount {}".format(shlex.quote(mount)))
  File "/usr/lib/python3.10/shlex.py", line 329, in quote
    if _find_unsafe(s) is None:
TypeError: expected string or bytes-like object

Resolved issues

See above

Documentation

N/A

Web service API changes

N/A

Tests

Tested deployment with this to ensure nothing else was needed.