Merge "Need compare indexes when extract amqp conf files"

This commit is contained in:
Jenkins 2014-09-23 07:59:29 +00:00 committed by Gerrit Code Review
commit c9f751b857
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ if 'powervc' in sys.argv[0]:
+ " amqp-openstack.conf(or openstack-neutron.conf)"
+ " are required.")
else:
if argv1_index > argv2_index:
argv1_index, argv2_index = argv2_index, argv1_index
sys.argv = (sys.argv[:argv1_index]
+ sys.argv[argv1_index+2:argv2_index]
+ sys.argv[argv2_index+2:])