]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Leave sqlalchemy convert to boolean to the DB SQL type to use.
authorRomain Chantereau <romain.chantereau@enovance.com>
Wed, 20 May 2015 13:06:36 +0000 (15:06 +0200)
committerRomain Chantereau <romain.chantereau@enovance.com>
Wed, 20 May 2015 13:08:15 +0000 (15:08 +0200)
Closes-Bug: #1457033

Change-Id: I969a4d60aa156ccfff09a58c3a448b5a9619e71f

cinder/db/sqlalchemy/migrate_repo/versions/040_add_volume_attachment.py

index e5b78c6bdd8228f2db4724a34cca4f74478499c2..237da2e1a46104214bb1569f07d27d0817892df5 100644 (file)
@@ -74,7 +74,7 @@ def upgrade(migrate_engine):
             values = {'id': six.text_type(uuid.uuid4()),
                       'created_at': CREATED_AT,
                       'deleted_at': None,
-                      'deleted': 0,
+                      'deleted': False,
                       'volume_id': volume.id,
                       'attached_host': volume.host,
                       'instance_uuid': volume.instance_uuid,