Fix pointless-string-statement pylint warning
For some reason, kilo_initial.py is triggering this warning, so fix it by using comments instead of a docstring. Also updated the template to use comments as well, so any migrations created in the future use them, even though none seem to be causing a similar warning right now. Closes-bug: #2036763 Change-Id: I63b7ac83fdd3ebc6251979f1376daf2105489fdc
This commit is contained in:
parent
dbe4ba910b
commit
c282077058
@ -17,13 +17,11 @@ from alembic import op
|
||||
import sqlalchemy as sa
|
||||
${imports if imports else ""}
|
||||
|
||||
"""${message}
|
||||
|
||||
Revision ID: ${up_revision}
|
||||
Revises: ${down_revision}
|
||||
Create Date: ${create_date}
|
||||
|
||||
"""
|
||||
# ${message}
|
||||
#
|
||||
# Revision ID: ${up_revision}
|
||||
# Revises: ${down_revision}
|
||||
# Create Date: ${create_date}
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = ${repr(up_revision)}
|
||||
|
@ -36,12 +36,11 @@ from neutron.db.migration.alembic_migrations import secgroup_init_ops
|
||||
from neutron.db.migration.alembic_migrations import vmware_init_ops
|
||||
from neutron.db.migration.alembic_migrations import vpn_init_ops
|
||||
|
||||
"""kilo_initial
|
||||
|
||||
Revision ID: kilo
|
||||
Revises: None
|
||||
|
||||
"""
|
||||
# kilo_initial
|
||||
#
|
||||
# Revision ID: kilo
|
||||
# Revises: None
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'kilo'
|
||||
|
Loading…
Reference in New Issue
Block a user