summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0003_shellrun.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <javsanpar@riseup.net>2020-06-23 11:42:26 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-23 13:42:39 +0200
commitffbcf7ebba76c6f2d20e5da6a3449be8b08913fa (patch)
tree0ad808d9e5dea466f3bc106dd0b0d38d5200818e /tests/units/test_0003_shellrun.py
parent173fabb84cce15cffbc615d6fdce1ed740b1afe1 (diff)
Check return code on restore image command
When restore image command was sent and the restoration failed, you could see in WebConsole the image as restored and the command completed, as it if had not failed. This happened because ogClient did not check the return code of restoration script. This commit adds return code check on restore image. So, when return code is a non-zero value ogClient responses with an error 500. When ogServer receives this error response, it did not set in the database the image as restored and command as completed without errors.
Diffstat (limited to 'tests/units/test_0003_shellrun.py')
0 files changed, 0 insertions, 0 deletions