Revision e4e9b806
ID | e4e9b8064787df01a79846a40f49c8ae06a8eb0e |
backend.InstanceShutdown: small cleanup
1) unhardcode the timeout, abstracting it in a constant
2) Use time.time() rather than hiding the timeout in a range()
3) call hyper.StopInstance multiple times
-- currently all hypervisors just ignore all calls but once
4) Use hyper.ListInstances() rather than GetInstanceList([hv_name])
-- it's cheaper :)
5) Change the final message to "forcing" from "using destroy"
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Olivier Tharan <olive@google.com>
Files
- added
- modified
- copied
- renamed
- deleted