Skip to content

Commit

Permalink
Patch to rectify the attribute decode issue.
Browse files Browse the repository at this point in the history
This patch includes the fix for "ERROR: 'CmdResult' object has no
attribute 'decode'".

Signed-off-by: Shaik Abdulla <[email protected]>
  • Loading branch information
FarooqAbdulla02 committed Jan 10, 2024
1 parent 18bebb9 commit 7a919a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avocado/utils/network/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ def get_device_IPI_name(self):
f"cat /sys/class/net/{self.name}/device/devspec | "
f"awk -F/ '{{print $3}}'"
)
interface_type = process.run(cmd, shell=True, ignore_status=True).decode(
interface_type = process.system_output(cmd, shell=True, ignore_status=True).decode(
"utf-8"
)
cmd = f"echo {interface_type} | sed 's/@/-/' "
Expand Down

0 comments on commit 7a919a2

Please sign in to comment.