| | 63 | === State URL Selection Process === |
| | 64 | URL selection works by the following process: |
| | 65 | {{{ |
| | 66 | switch_to_url = default_url |
| | 67 | |
| | 68 | if ((status.abort_request or status.quit_request or status.no_heartbeat) and (exiting_url not empty)) |
| | 69 | switch_to_url = exiting_url |
| | 70 | else if (status.suspended and (suspended_url not empty)) |
| | 71 | switch_to_url = suspended_url |
| | 72 | else if (status.network_suspended and (network_suspended_url not empty)) |
| | 73 | switch_to_url = network_suspended_url |
| | 74 | else if (running_url not empty) |
| | 75 | switch_to_url = running_url |
| | 76 | |
| | 77 | if ((is_vbox_job && api_port) && (switch_to_url is empty)) |
| | 78 | switch_to_url = "http://localhost:" + api_port + "/"; |
| | 79 | }}} |
| | 80 | |
| 98 | | |
| 99 | | === State URL Selection Process === |
| 100 | | URL selection works by the following process: |
| 101 | | {{{ |
| 102 | | switch_to_url = default_url |
| 103 | | |
| 104 | | if ((status.abort_request or status.quit_request or status.no_heartbeat) and (exiting_url not empty)) |
| 105 | | switch_to_url = exiting_url |
| 106 | | else if (status.suspended and (suspended_url not empty)) |
| 107 | | switch_to_url = suspended_url |
| 108 | | else if (status.network_suspended and (network_suspended_url not empty)) |
| 109 | | switch_to_url = network_suspended_url |
| 110 | | else if (running_url not empty) |
| 111 | | switch_to_url = running_url |
| 112 | | |
| 113 | | if ((is_vbox_job && api_port) && (switch_to_url is empty)) |
| 114 | | switch_to_url = "http://localhost:" + api_port + "/"; |
| 115 | | }}} |