summaryrefslogtreecommitdiffstats
path: root/nova/scheduler/manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/scheduler/manager.py')
-rw-r--r--nova/scheduler/manager.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py
index 647c2c780..377cdaaa2 100644
--- a/nova/scheduler/manager.py
+++ b/nova/scheduler/manager.py
@@ -53,7 +53,7 @@ QUOTAS = quota.QUOTAS
class SchedulerManager(manager.Manager):
"""Chooses a host to run instances on."""
- RPC_API_VERSION = '2.0'
+ RPC_API_VERSION = '2.1'
def __init__(self, scheduler_driver=None, *args, **kwargs):
if not scheduler_driver:
@@ -69,8 +69,8 @@ class SchedulerManager(manager.Manager):
self.driver.update_service_capabilities(service_name, host,
capabilities)
- def create_volume(self, context, volume_id, snapshot_id, image_id,
- reservations):
+ def create_volume(self, context, volume_id, snapshot_id,
+ reservations, image_id=None):
try:
self.driver.schedule_create_volume(
context, volume_id, snapshot_id, image_id, reservations)