def _exit_status(retcode):
 ret = {0: 'Successful completion.', 1: 'An error occurred.', 2: 'Usage error.', 3: 'Image not installed.'}[retcode]
 return ret

def _exit_status ( retcode ) : ret = { 0 : 'Successful completion.' , 1 : 'An error occurred.' , 2 : 'Usage error.' , 3 : 'Image not installed.' } [ retcode ] return ret
translate exit status of imgadm .