summaryrefslogtreecommitdiffstats
path: root/nova/endpoint
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2010-07-26 17:14:28 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2010-07-26 17:14:28 -0700
commit754db8ef1ceb84fa9a1f44bfc6c5c6bbd99cd7e1 (patch)
tree160984a03f0d27a8ff4dff9b5e12a8243fd9fe91 /nova/endpoint
parentcacca7df569e396d76112693aab62c95d51ff035 (diff)
downloadnova-754db8ef1ceb84fa9a1f44bfc6c5c6bbd99cd7e1.tar.gz
nova-754db8ef1ceb84fa9a1f44bfc6c5c6bbd99cd7e1.tar.xz
nova-754db8ef1ceb84fa9a1f44bfc6c5c6bbd99cd7e1.zip
renamed xxxservice to service
Diffstat (limited to 'nova/endpoint')
-rw-r--r--nova/endpoint/cloud.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/nova/endpoint/cloud.py b/nova/endpoint/cloud.py
index 56d474fd9..97a7b5a38 100644
--- a/nova/endpoint/cloud.py
+++ b/nova/endpoint/cloud.py
@@ -37,9 +37,9 @@ from nova.auth import rbac
from nova.auth import users
from nova.compute import model
from nova.compute import network
-from nova.compute import computeservice
+from nova.compute import service as compute_service
from nova.endpoint import images
-from nova.volume import volumeservice
+from nova.volume import service as volume_service
FLAGS = flags.FLAGS
@@ -75,7 +75,7 @@ class CloudController(object):
def volumes(self):
""" returns a list of all volumes """
for volume_id in datastore.Redis.instance().smembers("volumes"):
- volume = volumeservice.get_volume(volume_id)
+ volume = volume_service.get_volume(volume_id)
yield volume
def __str__(self):
@@ -102,7 +102,7 @@ class CloudController(object):
result = {}
for instance in self.instdir.all:
if instance['project_id'] == project_id:
- line = '%s slots=%d' % (instance['private_dns_name'], computeservice.INSTANCE_TYPES[instance['instance_type']]['vcpus'])
+ line = '%s slots=%d' % (instance['private_dns_name'], compute_service.INSTANCE_TYPES[instance['instance_type']]['vcpus'])
if instance['key_name'] in result:
result[instance['key_name']].append(line)
else:
@@ -295,7 +295,7 @@ class CloudController(object):
@rbac.allow('projectmanager', 'sysadmin')
def create_volume(self, context, size, **kwargs):
- # TODO(vish): refactor this to create the volume object here and tell volumeservice to create it
+ # TODO(vish): refactor this to create the volume object here and tell service to create it
res = rpc.call(FLAGS.volume_topic, {"method": "create_volume",
"args" : {"size": size,
"user_id": context.user.id,
@@ -330,7 +330,7 @@ class CloudController(object):
raise exception.NotFound('Instance %s could not be found' % instance_id)
def _get_volume(self, context, volume_id):
- volume = volumeservice.get_volume(volume_id)
+ volume = volume_service.get_volume(volume_id)
if context.user.is_admin() or volume['project_id'] == context.project.id:
return volume
raise exception.NotFound('Volume %s could not be found' % volume_id)