summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKei Masumoto <masumotok@nttdata.co.jp>2011-03-04 01:17:05 +0900
committerKei Masumoto <masumotok@nttdata.co.jp>2011-03-04 01:17:05 +0900
commitbc6cc457132b096150dcd9ff2ed2909585a80484 (patch)
treed322aa6bd79d7794888eb2a96e3d491964fedbd6
parent137a4946785b9460aadb9fe40f2b0e18bd7f6063 (diff)
downloadnova-bc6cc457132b096150dcd9ff2ed2909585a80484.tar.gz
nova-bc6cc457132b096150dcd9ff2ed2909585a80484.tar.xz
nova-bc6cc457132b096150dcd9ff2ed2909585a80484.zip
some comments are modified
-rw-r--r--nova/db/api.py8
-rw-r--r--nova/db/sqlalchemy/api.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/nova/db/api.py b/nova/db/api.py
index 3b427cefe..43e1c2183 100644
--- a/nova/db/api.py
+++ b/nova/db/api.py
@@ -154,19 +154,19 @@ def service_update(context, service_id, values):
def compute_node_get(context, compute_id, session=None):
- """Get an computeService or raise if it does not exist."""
+ """Get an computeNode or raise if it does not exist."""
return IMPL.compute_node_get(context, compute_id)
def compute_node_create(context, values):
- """Create a computeService from the values dictionary."""
+ """Create a computeNode from the values dictionary."""
return IMPL.compute_node_create(context, values)
def compute_node_update(context, compute_id, values):
- """Set the given properties on an computeService and update it.
+ """Set the given properties on an computeNode and update it.
- Raises NotFound if computeService does not exist.
+ Raises NotFound if computeNode does not exist.
"""
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index 69aa07279..b305543ff 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -308,7 +308,7 @@ def compute_node_get(context, compute_id, session=None):
first()
if not result:
- raise exception.NotFound(_('No computeService for id %s') % compute_id)
+ raise exception.NotFound(_('No computeNode for id %s') % compute_id)
return result