Use election_type from the configuration

We have this information now so let's just use it.

Change-Id: I89ee1b88e89c23e9f6aeaa9547e7afc80816a2a8
This commit is contained in:
Tony Breeds 2018-08-08 09:36:53 +10:00
parent 414c6f7123
commit 6a1e43a8b4

View File

@ -79,7 +79,8 @@ def main():
parser.add_argument('-b', '--basedir',
default=os.getcwd(),
help='Path to git clone of openstack/election')
parser.add_argument('round', choices=('ptl', 'tc'))
parser.add_argument('--round', default=utils.conf['election_type'],
choices=('ptl', 'tc'))
args = parser.parse_args()