def _state_description(vm_state, _shutdown_terminate):
 name = _STATE_DESCRIPTION_MAP.get(vm_state, vm_state)
 return {'code': inst_state.name_to_code(name), 'name': name}

def _state_description ( vm_state , _shutdown_terminate ) : name = _STATE_DESCRIPTION_MAP . get ( vm_state , vm_state ) return { 'code' : inst_state . name_to_code ( name ) , 'name' : name }
map the vm state to the server status string .