diff --git a/wlauto/common/linux/device.py b/wlauto/common/linux/device.py index ed312aed..daa3f40c 100644 --- a/wlauto/common/linux/device.py +++ b/wlauto/common/linux/device.py @@ -216,7 +216,7 @@ class BaseLinuxDevice(Device): # pylint: disable=abstract-method as a string. """ - output = self.execute('cat \'{}\''.format(sysfile), as_root=True).strip() # pylint: disable=E1103 + output = self.execute('cat \'{}\''.format(sysfile), as_root=self.is_rooted).strip() # pylint: disable=E1103 if kind: return kind(output) else: