def _exit_status(retcode):
    ret = {0: 'Successful completion.',
           1: 'An error occurred.',
           2: 'Usage error.'}[retcode]
    return ret
Translate exit status of vmadm
dataset/ETHPy150Open saltstack/salt/salt/modules/smartos_vmadm.py/_exit_status