image-info: use subprocess_check_output() in read_selinux_ctx_mismatch()

Use the `subprocess_check_output()` wrapper function in the
`read_selinux_ctx_mismatch()` parser function, instead of
directly calling `subprocess.check_output()`.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
Tomas Hozza 2021-09-02 18:12:02 +02:00 committed by Achilleas Koutsou
parent e91c4a114b
commit 02b706b673

View file

@ -1009,7 +1009,7 @@ def read_selinux_ctx_mismatch(tree, is_ostree):
# context for /etc path
CMD.extend(["-e", f"{tree}/etc"])
output = subprocess.check_output(CMD).decode()
output = subprocess_check_output(CMD)
# output are lines such as:
# Would relabel /tmp/tmpwrozmb47/dev from system_u:object_r:root_t:s0 to system_u:object_r:device_t:s0\n