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:
parent
e91c4a114b
commit
02b706b673
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue