scripts/qom-fuse: ensure QOMFuse.read always returns bytes
authorJohn Snow <jsnow@redhat.com>
Thu, 3 Jun 2021 00:37:14 +0000 (20:37 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 18 Jun 2021 20:10:06 +0000 (16:10 -0400)
commit2cea7134620749b106af167322d921716ef61144
treea341cd54610c2d779169019148c10759f9bef42a
parent9ec8a3869480a9826ba77b480bb7ca567aa3d26b
scripts/qom-fuse: ensure QOMFuse.read always returns bytes

- Use FuseOSError to signal ENOENT instead of returning it
- Wrap qom-get in str(), as we don't always know its type
- The empty return should be b'', not ''.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20210603003719.1321369-15-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
scripts/qmp/qom-fuse