def node_state(id_):
    states = {0: 'RUNNING',
              1: 'REBOOTING',
              2: 'TERMINATED',
              3: 'PENDING',
              4: 'UNKNOWN',
              5: 'STOPPED',
              6: 'SUSPENDED',
              7: 'ERROR',
              8: 'PAUSED'}
    return states[id_]
Verify that a return_to URL is valid for the given realm.
dataset/ETHPy150Open saltstack/salt/salt/cloud/libcloudfuncs.py/node_state--crossover with--dataset/ETHPy150Open openid/python-openid/openid/server/trustroot.py/verifyReturnTo