Skip to content

Fix issue of trying to decode a str#455

Merged
petrutlucian94 merged 2 commits into
cloudbase:masterfrom
MiningPickaxe:patch-netpreserver-interfaces
Jul 21, 2026
Merged

Fix issue of trying to decode a str#455
petrutlucian94 merged 2 commits into
cloudbase:masterfrom
MiningPickaxe:patch-netpreserver-interfaces

Conversation

@MiningPickaxe

Copy link
Copy Markdown
Contributor

This fixes an error where _parse_iface_file tries to decode a str. The output of the command getting executed is already getting decoded in coriolis/utils.py exec_cmd_ssh introduced in commit 539fabb

This fixes an error where _parse_iface_file tries to decode a str. The output of the command getting executed is already getting decoded in coriolis/utils.py exec_cmd_ssh introduced in commit 539fabb
@petrutlucian94

Copy link
Copy Markdown
Member

Thanks for sending the fix! It seems like this was indeed an oversight in 539fabb.

There's an unit test that will need to be updated before being able to merge the fix but I'll take care of that.

"_read_file_sudo" no longer returns a byte array, it actually
decodes the string.

The tests need to be updated accordingly, avoiding type mismatches.
@petrutlucian94
petrutlucian94 merged commit e523397 into cloudbase:master Jul 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants