Removed extra parameter from the call to _provision_resource_locally()
This commit is contained in:
@@ -62,7 +62,7 @@ class AbstractScheduler(driver.Scheduler):
|
|||||||
host = build_plan_item['hostname']
|
host = build_plan_item['hostname']
|
||||||
base_options = request_spec['instance_properties']
|
base_options = request_spec['instance_properties']
|
||||||
image = request_spec['image']
|
image = request_spec['image']
|
||||||
instance_type = request_spec['instance_type']
|
instance_type = request_spec.get('instance_type')
|
||||||
|
|
||||||
# TODO(sandy): I guess someone needs to add block_device_mapping
|
# TODO(sandy): I guess someone needs to add block_device_mapping
|
||||||
# support at some point? Also, OS API has no concept of security
|
# support at some point? Also, OS API has no concept of security
|
||||||
@@ -159,8 +159,8 @@ class AbstractScheduler(driver.Scheduler):
|
|||||||
self._ask_child_zone_to_create_instance(context, host_info,
|
self._ask_child_zone_to_create_instance(context, host_info,
|
||||||
request_spec, kwargs)
|
request_spec, kwargs)
|
||||||
else:
|
else:
|
||||||
self._provision_resource_locally(context, instance_type, host_info,
|
self._provision_resource_locally(context, host_info, request_spec,
|
||||||
request_spec, kwargs)
|
kwargs)
|
||||||
|
|
||||||
def _provision_resource(self, context, build_plan_item, instance_id,
|
def _provision_resource(self, context, build_plan_item, instance_id,
|
||||||
request_spec, kwargs):
|
request_spec, kwargs):
|
||||||
|
Reference in New Issue
Block a user