diff options
| author | Josh Kearney <josh@jk0.org> | 2011-08-18 12:25:22 -0500 |
|---|---|---|
| committer | Josh Kearney <josh@jk0.org> | 2011-08-18 12:25:22 -0500 |
| commit | a9d87715133ae79518cef6aafd87c95e26f20765 (patch) | |
| tree | 47bdbe2ae3b9d75d346cb61d7ca187de0c07505d | |
| parent | a68c1cde2e73e6d39d7ff6024cd3ff289c465619 (diff) | |
Minor housecleaning.
| -rw-r--r-- | nova/api/openstack/contrib/rescue.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nova/api/openstack/contrib/rescue.py b/nova/api/openstack/contrib/rescue.py index dac269efb..65ce2874b 100644 --- a/nova/api/openstack/contrib/rescue.py +++ b/nova/api/openstack/contrib/rescue.py @@ -22,17 +22,22 @@ from nova import log as logging from nova.api.openstack import extensions as exts from nova.api.openstack import faults + LOG = logging.getLogger("nova.api.contrib.rescue") class Rescue(exts.ExtensionDescriptor): - """The Rescue API controller for the OpenStack API.""" + """The Rescue controller for the OpenStack API.""" def __init__(self): super(Rescue, self).__init__() self.compute_api = compute.API() def _rescue(self, input_dict, req, instance_id, exit_rescue=False): - """Rescue an instance.""" + """Rescue an instance. + + If exit_rescue is True, rescue mode should be torn down and the + instance restored to its original state. + """ context = req.environ["nova.context"] action = "unrescue" if exit_rescue else "rescue" |
