diff options
| author | Soren Hansen <soren.hansen@rackspace.com> | 2010-10-13 17:13:35 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-10-13 17:13:35 +0000 |
| commit | a4aa6725be683e7e1f35df1e54069b755d19551b (patch) | |
| tree | 5dada03ad0927ddc10c5dd5bbf78fb05fd006243 /nova/api | |
| parent | d68528b6135b407a7ce0897769d2d6bb92ec6be4 (diff) | |
| parent | e2b7c99c6266b24dc8b53c47db3587aebd2381fe (diff) | |
Xen support.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/cloud.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index 278055be1..a7693cadd 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -452,11 +452,16 @@ class CloudController(object): ec2_id = instance_id[0] internal_id = ec2_id_to_internal_id(ec2_id) instance_ref = db.instance_get_by_internal_id(context, internal_id) - return rpc.call('%s.%s' % (FLAGS.compute_topic, - instance_ref['host']), - {"method": "get_console_output", - "args": {"context": None, - "instance_id": instance_ref['id']}}) + output = rpc.call('%s.%s' % (FLAGS.compute_topic, + instance_ref['host']), + { "method" : "get_console_output", + "args" : { "context": None, + "instance_id": instance_ref['id']}}) + + now = datetime.datetime.utcnow() + return { "InstanceId" : ec2_id, + "Timestamp" : now, + "output" : base64.b64encode(output) } def describe_volumes(self, context, **kwargs): if context.user.is_admin(): |
