[master] Fix exit code
BEGINRELEASENOTES Thank you for writing the text to appear in the release notes. It will show up exactly as it appears between the two bold lines
Please follow the template:
- DMScript
FIX: fix exit code if
'Failed'
items in method result. To solve issue https://github.com/DIRACGrid/DIRAC/issues/5580
ENDRELEASENOTES
Edited by Philippe Charpentier