Correct comparison type, add more verbose error
This commit is contained in:
parent
7a6ba7675c
commit
539fded22d
@ -84,8 +84,9 @@ class ShellScriptVirtualization(VirtualizationInterface):
|
||||
return False
|
||||
|
||||
lines = completedProcess.stdout.splitlines()
|
||||
if not lines[len(lines)-1] == "yes":
|
||||
current_app.logger.error("capacity-avaliable.sh exited 0 but did not return \"yes\" ")
|
||||
output = lines[len(lines)-1]
|
||||
if not output == b"yes":
|
||||
current_app.logger.error(f"capacity-avaliable.sh exited 0 and returned {output} but did not return \"yes\" ")
|
||||
return False
|
||||
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user