]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused import and CinderNode sqlalchemy model
authorOlga Kopylova <olkonami@gmail.com>
Wed, 27 Nov 2013 11:45:32 +0000 (13:45 +0200)
committerOlga Kopylova <olkonami@gmail.com>
Thu, 28 Nov 2013 09:46:32 +0000 (11:46 +0200)
Class CinderNode is never used,
attribute_mapped_collection from sqlalchemy.orm.collections imported but unused.

Change-Id: I5d72aaf0922eab001f2db5b884b65632481df937

cinder/db/sqlalchemy/models.py

index f4dd4249e49a09210d0dd975f5d1880506aaf11e..fa9cdb2238abca663fec317e1a49853c01a5bc17 100644 (file)
@@ -26,7 +26,6 @@ from sqlalchemy import Column, Integer, String, Text, schema
 from sqlalchemy.ext.declarative import declarative_base
 from sqlalchemy import ForeignKey, DateTime, Boolean
 from sqlalchemy.orm import relationship, backref
-from sqlalchemy.orm.collections import attribute_mapped_collection
 
 from oslo.config import cfg
 
@@ -70,14 +69,6 @@ class Service(BASE, CinderBase):
     availability_zone = Column(String(255), default='cinder')
 
 
-class CinderNode(BASE, CinderBase):
-    """Represents a running cinder service on a host."""
-
-    __tablename__ = 'cinder_nodes'
-    id = Column(Integer, primary_key=True)
-    service_id = Column(Integer, ForeignKey('services.id'), nullable=True)
-
-
 class Volume(BASE, CinderBase):
     """Represents a block storage device that can be attached to a vm."""
     __tablename__ = 'volumes'