diff options
Diffstat (limited to 'nova/scheduler/utils.py')
-rw-r--r-- | nova/scheduler/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/scheduler/utils.py b/nova/scheduler/utils.py index d0a9d7ca5..eeb68f439 100644 --- a/nova/scheduler/utils.py +++ b/nova/scheduler/utils.py @@ -44,6 +44,9 @@ def build_request_spec(ctxt, image, instances): 'image': image, 'instance_properties': instance, 'instance_type': instance_type, + 'num_instances': len(instances), + # NOTE(alaski): This should be removed as logic moves from the + # scheduler to conductor. Provides backwards compatibility now. 'instance_uuids': [inst['uuid'] for inst in instances]} return jsonutils.to_primitive(request_spec) |