1
0
Fork 0

Fix typo in profile_recommender

Execute method from Commands class takes array of strings as
arguments to execute not a name of executable.
This caused bad format of logged error message in case of failure
of execute method.

Signed-off-by: Tomas Korbar <tkorbar@redhat.com>
This commit is contained in:
Tomas Korbar 2019-03-13 14:45:15 +01:00
parent 08b932c8b0
commit cccbf6f11e

View file

@ -67,7 +67,7 @@ class ProfileRecommender:
value = r"^$"
if option == "virt":
if not re.match(value,
self._commands.execute("virt-what")[1], re.S):
self._commands.execute(["virt-what"])[1], re.S):
match = False
elif option == "system":
if not re.match(value,