From 6846883357a68048b3f52884a82fd921c464ff65 Mon Sep 17 00:00:00 2001 From: Mayuri Mohite Date: Tue, 23 Mar 2021 14:09:04 -0400 Subject: [PATCH] mountpoint expects noting instead of self.device and path is optional fixes: AttributeError: 'SamsungSdMuxController' object has no attribute 'device' Signed-off-by: Mayuri Mohite --- mtda/sdmux/helpers/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtda/sdmux/helpers/image.py b/mtda/sdmux/helpers/image.py index 411120e1..64b79f19 100644 --- a/mtda/sdmux/helpers/image.py +++ b/mtda/sdmux/helpers/image.py @@ -266,7 +266,7 @@ def _locate(self, dst): self.mtda.debug(3, "sdmux.helpers.image._locate()") result = None - mountpoint = self._mountpoint(self.device) + mountpoint = self._mountpoint() partitions = psutil.disk_partitions() for p in partitions: if p.mountpoint.startswith(mountpoint):