summaryrefslogtreecommitdiffstats
path: root/nova/db
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2010-10-29 12:35:46 -0400
committerTodd Willey <todd@ansolabs.com>2010-10-29 12:35:46 -0400
commit3ec095bed60490c844067c8d58ed43dbedee5f0a (patch)
tree4d2d22c7efa194fd542dc7cd258665afb103dc3a /nova/db
parent5feb2edcc322a8d44d3d698e2d3c27d81d16fe3f (diff)
downloadnova-3ec095bed60490c844067c8d58ed43dbedee5f0a.tar.gz
nova-3ec095bed60490c844067c8d58ed43dbedee5f0a.tar.xz
nova-3ec095bed60490c844067c8d58ed43dbedee5f0a.zip
Update database page a bit.
Diffstat (limited to 'nova/db')
-rw-r--r--nova/db/sqlalchemy/api.py2
-rw-r--r--nova/db/sqlalchemy/models.py8
2 files changed, 7 insertions, 3 deletions
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index a3d8dde2f..d9b98655e 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -16,7 +16,7 @@
# License for the specific language governing permissions and limitations
# under the License.
"""
-Implementation of SQLAlchemy backend
+Implementation of SQLAlchemy backend.
"""
import random
diff --git a/nova/db/sqlalchemy/models.py b/nova/db/sqlalchemy/models.py
index 894ebcddd..29c3b74da 100644
--- a/nova/db/sqlalchemy/models.py
+++ b/nova/db/sqlalchemy/models.py
@@ -16,7 +16,7 @@
# License for the specific language governing permissions and limitations
# under the License.
"""
-SQLAlchemy models for nova data
+SQLAlchemy models for nova data.
"""
import datetime
@@ -488,7 +488,11 @@ class FloatingIp(BASE, NovaBase):
def register_models():
- """Register Models and create metadata."""
+ """Register Models and create metadata.
+
+ Called from nova.db.sqlalchemy.__init__ as part of loading the driver,
+ it will never need to be called explicitly elsewhere.
+ """
from sqlalchemy import create_engine
models = (Service, Instance, Volume, ExportDevice, FixedIp,
FloatingIp, Network, SecurityGroup,