def xapi_to_module_vm_power_state(power_state):
    """Maps XAPI VM power states to module VM power states."""
    module_power_state_map = {'running': 'poweredon', 'halted':
        'poweredoff', 'suspended': 'suspended', 'paused': 'paused'}
    return module_power_state_map.get(power_state)
