forked from 3wordchant/capsul-flask
		
	Correct comparison type, add more verbose error
This commit is contained in:
		| @ -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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user