Call rally-manage with warning when openstack-rally-manage is used
Currently when openstack-rally-manage is used, args are passed through to rally, not rally-manage. This patch fixes this situation. Change-Id: I51fe14068f679d7f65fb4e518b8f55beca1c7d72 Closes-Bug: #1274068
This commit is contained in:
@@ -31,6 +31,12 @@ class DBCommands(object):
|
|||||||
db.db_create()
|
db.db_create()
|
||||||
|
|
||||||
|
|
||||||
|
def deprecated():
|
||||||
|
print("\n\n---\n\nopenstack-rally and openstack-rally-manage are "
|
||||||
|
"deprecated, please use rally and rally-manage\n\n---\n\n")
|
||||||
|
main()
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
categories = {'db': DBCommands}
|
categories = {'db': DBCommands}
|
||||||
cliutils.run(sys.argv, categories)
|
cliutils.run(sys.argv, categories)
|
||||||
|
@@ -26,7 +26,7 @@ console_scripts =
|
|||||||
rally = rally.cmd.main:main
|
rally = rally.cmd.main:main
|
||||||
rally-manage = rally.cmd.manage:main
|
rally-manage = rally.cmd.manage:main
|
||||||
openstack-rally = rally.cmd.main:deprecated
|
openstack-rally = rally.cmd.main:deprecated
|
||||||
openstack-rally-manage = rally.cmd.main:deprecated
|
openstack-rally-manage = rally.cmd.manage:deprecated
|
||||||
|
|
||||||
|
|
||||||
[global]
|
[global]
|
||||||
|
Reference in New Issue
Block a user