fix positional params for return of rally/common/db/schema.schema_stamp

(overcloud) [stack@undercloud-0 rally]$ bin/rally --debug db ensure
[...]
2019-09-23 08:45:55.341 9010 ERROR rally.cli.cliutils     return alembic.command.stamp(config, revision=revision)
2019-09-23 08:45:55.341 9010 ERROR rally.cli.cliutils TypeError: stamp() got an unexpected keyword argument 'revision'
2019-09-23 08:45:55.341 9010 ERROR rally.cli.cliutils

(overcloud) [stack@undercloud-0 rally]$ tail ./lib/python2.7/site-packages/rally/common/db/schema.py
    """Stamps database with provided revision.

    Don't run any migrations.
    :param revision: Should match one from repository or head - to stamp
                     database with most recent revision
    :type revision: string
    :param config: Instance of alembic config
    """
    config = config or _alembic_config()
    return alembic.command.stamp(config, revision)

(overcloud) [stack@undercloud-0 rally]$ bin/rally --debug db ensure
2019-09-23 08:51:02.203 9919 RALLYDEBUG rally.api [-] INFO logs from urllib3 and requests module are hide.
2019-09-23 08:51:02.203 9919 RALLYDEBUG rally.api [-] urllib3 insecure warnings are hidden.
2019-09-23 08:51:02.203 9919 RALLYDEBUG rally.api [-] ERROR log from boto module is hide.
Ensuring database exists: sqlite:////tmp/rally.sqlite
Database already exists, nothing to do

Change-Id: I62bb1242c14f54d35d0dcdde0eb059bc3b24aca0
This commit is contained in:
pkomarov 2019-09-23 15:55:10 +03:00
parent 38d543af6b
commit c7d1fabb91
1 changed files with 1 additions and 1 deletions

View File

@ -149,4 +149,4 @@ def schema_stamp(revision, config=None):
:param config: Instance of alembic config
"""
config = config or _alembic_config()
return alembic.command.stamp(config, revision=revision)
return alembic.command.stamp(config, revision)