Skip to content

Commit bf169a7

Browse files
committed
update
1 parent 026c29c commit bf169a7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nodescraper/plugins/inband/sys_settings/sys_settings_collector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ def collect_data(
153153
continue
154154
full_path = _sysfs_full_path(suffix)
155155
if "*" in suffix:
156-
res = self._run_sut_cmd(self.CMD_LS_LONG.format(suffix), sudo=False)
156+
cmd = self.CMD_LS_LONG.format(suffix)
157+
res = self._run_sut_cmd(f"bash -c {cmd!r}", sudo=False)
157158
if res.exit_code == 0:
158159
readings[full_path] = res.stdout.strip() if res.stdout else ""
159160
else:

0 commit comments

Comments
 (0)