From 6a1e43a8b483e15bfa1f135323b76d8c4e392f59 Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Wed, 8 Aug 2018 09:36:53 +1000 Subject: [PATCH] Use election_type from the configuration We have this information now so let's just use it. Change-Id: I89ee1b88e89c23e9f6aeaa9547e7afc80816a2a8 --- openstack_election/cmds/close_election.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_election/cmds/close_election.py b/openstack_election/cmds/close_election.py index f39febfa..116a5748 100755 --- a/openstack_election/cmds/close_election.py +++ b/openstack_election/cmds/close_election.py @@ -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()