diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-05-09 04:34:40 +0000 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-05-09 04:40:00 +0000 |
| commit | f539bf7d0522f4a83a212534ec0dac988c36c87a (patch) | |
| tree | b78652a9b3036d34bd9bbe66581488b4878c0d0c /nova/openstack | |
| parent | 3e126c83bf6c26de971c84700888deeaee280a50 (diff) | |
Remove unnecessary shutdown argument to _destroy()
Xen requires the VM power state be not running before it can be
destroyed. Xen also requires the VM power state to be running
to shutdown a VM. The shutdown argument was available to ensure
that a shutdown was not attempted when the VM was not running.
Since commit f5b051bbd0858294157f911ecbb04542fadbb38d, the
_shutdown() method checks the power state and determines if it
should issue the shutdown command or not. As a result, the
shutdown argument is unnecessary and always calling the
_shutdown() method will ensure the VM is in the proper state
for the destroy to succeed.
Change-Id: I9bc6007598da4ac69e8d463be9af51deaf5d6535
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
