« Previous | Next » 

Revision e4e9b806

IDe4e9b8064787df01a79846a40f49c8ae06a8eb0e

Added by Guido Trotter over 14 years ago

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 <>
Reviewed-by: Olivier Tharan <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences