diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2011-04-07 15:52:27 -0700 |
|---|---|---|
| committer | Justin Santa Barbara <justin@fathomdb.com> | 2011-04-07 15:52:27 -0700 |
| commit | b54be0e29cdcd91e3d106fb587b89c39ca3a0bff (patch) | |
| tree | e67285adfc0990034607cb62816af3cfad1fe9f6 /nova/virt | |
| parent | 399056300a0be228ec4c56587ec0d9c0d09d927c (diff) | |
Removed commented-out old 'delete instance on SHUTOFF' code
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/libvirt_conn.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/nova/virt/libvirt_conn.py b/nova/virt/libvirt_conn.py index 533ff9394..4523cdd2f 100644 --- a/nova/virt/libvirt_conn.py +++ b/nova/virt/libvirt_conn.py @@ -232,14 +232,8 @@ class LibvirtConnection(driver.ComputeDriver): {'name': instance['name'], 'state': state}) db.instance_set_state(ctxt, instance['id'], state) - # NOTE(justinsb): We no longer delete these instances, + # NOTE(justinsb): We no longer delete SHUTOFF instances, # the user may want to power them back on - #if state == power_state.SHUTOFF: - # # TODO(soren): This is what the compute manager does when you - # # terminate # an instance. At some point I figure we'll have a - # # "terminated" state and some sort of cleanup job that runs - # # occasionally, cleaning them out. - # db.instance_destroy(ctxt, instance['id']) if state != power_state.RUNNING: continue |
