From: Olga Kopylova Date: Wed, 27 Nov 2013 11:45:32 +0000 (+0200) Subject: Remove unused import and CinderNode sqlalchemy model X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=714f0855d29dfbbc1bc722d74f44250f42598ffe;p=openstack-build%2Fcinder-build.git Remove unused import and CinderNode sqlalchemy model Class CinderNode is never used, attribute_mapped_collection from sqlalchemy.orm.collections imported but unused. Change-Id: I5d72aaf0922eab001f2db5b884b65632481df937 --- diff --git a/cinder/db/sqlalchemy/models.py b/cinder/db/sqlalchemy/models.py index f4dd4249e..fa9cdb223 100644 --- a/cinder/db/sqlalchemy/models.py +++ b/cinder/db/sqlalchemy/models.py @@ -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'