diff options
| author | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-10-14 00:30:42 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-10-14 00:30:42 -0700 |
| commit | 914786b8f9d30e2762e290ef911710efcbe6d310 (patch) | |
| tree | 7f0edec63a89658c4b10c4fe824e7d1f1e84c7c9 /nova/api | |
| parent | af9910d935b7b3839774e3485b87b4a0dcdb78ff (diff) | |
review fixes
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/cloud.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/nova/api/cloud.py b/nova/api/cloud.py index e16229e7d..aa84075dc 100644 --- a/nova/api/cloud.py +++ b/nova/api/cloud.py @@ -29,12 +29,8 @@ FLAGS = flags.FLAGS def reboot(instance_id, context=None): - """Reboot the given instance. - - #TODO(gundlach) not actually sure what context is used for by ec2 here - -- I think we can just remove it and use None all the time. - """ - instance_ref = db.instance_get_by_ec2_id(context, instance_id) + """Reboot the given instance.""" + instance_ref = db.instance_get_by_internal_id(context, instance_id) host = instance_ref['host'] rpc.cast(context, db.queue_get_for(context, FLAGS.compute_topic, host), |
