Actual and user output are same but getting error


I have used many commands to get access to version and type.
Some of commands result returncode>0
So,I have used another command but this time actual and user output are same.But getting error.
Log file shows as follows:-

User output:

OS is ubuntu which is required for QBox
Ubuntu version is 18 which is sufficient for QBox

Actual output:
OS is Ubuntu which is required for QBox
Ubuntu version is 18 which is sufficient for QBox

unitTesting INFO File: check_QBox_server_OS.sh | Status: TEST_STATUS_FAILURE

Why this is happening?

We are looking into the matter, but for now try to grab ubuntu from “NAME” instead of “ID”