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:
Hugh Saunders 2014-01-29 11:37:32 +00:00
parent 00310442a2
commit 43a12fd92f
2 changed files with 7 additions and 1 deletions

View File

@ -31,6 +31,12 @@ class DBCommands(object):
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():
categories = {'db': DBCommands}
cliutils.run(sys.argv, categories)

View File

@ -26,7 +26,7 @@ console_scripts =
rally = rally.cmd.main:main
rally-manage = rally.cmd.manage:main
openstack-rally = rally.cmd.main:deprecated
openstack-rally-manage = rally.cmd.main:deprecated
openstack-rally-manage = rally.cmd.manage:deprecated
[global]