From 6eff95743881a5ddc3f03eb4140c9c209ab70bee Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Wed, 5 Sep 2018 10:39:42 +1000 Subject: [PATCH] Add last_release to the tc_fmt_args dict() In tc_nominations_kickoff() we need to refer to the most recent release which we did correctly in Icf1274ebc957e8b74fa35c0f0c791ae22f079b16 but when we merged all the fmt args in I8b439c76fa1d14624c0119ab05b1561c6cf424c9 we didn't noticed that 'future_release' is used differently in tc_nominations_kickoff(). This last introduces a new 'last_release' key that differs from end_release only in case :( Change-Id: I02f1e6a9cfa1a6e327f6d463723ec67bf0f873e5 --- openstack_election/cmds/template_emails.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_election/cmds/template_emails.py b/openstack_election/cmds/template_emails.py index 271bad1b..23167ac9 100644 --- a/openstack_election/cmds/template_emails.py +++ b/openstack_election/cmds/template_emails.py @@ -17,6 +17,7 @@ tc_fmt_args = dict( time_frame=time_frame, start_release=start_release, end_release=end_release, + last_release=end_release.lower(), start_nominations=utils.get_event('TC Nominations')['start_str'], end_nominations=utils.get_event('TC Nominations')['end_str'], campaign_start=utils.get_event('TC Campaigning')['start_str'], @@ -294,7 +295,7 @@ Thank you, [1] http://governance.openstack.org/election/#how-to-submit-your-candidacy [2] http://www.openstack.org/community/members/ [3] https://governance.openstack.org/tc/reference/projects/ -[4] https://releases.openstack.org/%(release)s/schedule.html#p-extra-atcs +[4] https://releases.openstack.org/%(last_release)s/schedule.html#p-extra-atcs [5] https://governance.openstack.org/election/ [6] http://governance.openstack.org/election/#election-officials""" # noqa