From 49809c7e7b38ae993cce590df9ae2e88120fc3d8 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 23 Feb 2018 11:32:54 -0600 Subject: [PATCH] Skip diff-start for first final release tagging Handles the case where it is the first release of a deliverable. Instead of adding 'none' as the diff-start, this just skips adding the setting to the release. Change-Id: I66fd4ef165165689cb6d2b6613c45b3564330a8f --- openstack_releases/cmds/propose_final_releases.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openstack_releases/cmds/propose_final_releases.py b/openstack_releases/cmds/propose_final_releases.py index a9738ebdd9..7e4d6d2952 100644 --- a/openstack_releases/cmds/propose_final_releases.py +++ b/openstack_releases/cmds/propose_final_releases.py @@ -169,11 +169,13 @@ def main(): ) deliverable_data = deliv.data - deliverable_data['releases'].append({ + release_data = { 'version': new_version, - 'diff-start': diff_start, 'projects': latest_release['projects'], - }) + } + if diff_start: + release_data['diff-start'] = diff_start + deliverable_data['releases'].append(release_data) print('new version for {}: {}'.format( deliv.name, new_version))