From 2de7b0b7ef5a334cd4512ce76cc3f897df79554f Mon Sep 17 00:00:00 2001 From: Kirti Date: Tue, 13 Aug 2019 12:20:05 -0700 Subject: [PATCH] TEST-718. topolgy_cdh: Fix parcel based SDC docker image building --- images/build_images | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/images/build_images b/images/build_images index c91d0f9..fe5510a 100755 --- a/images/build_images +++ b/images/build_images @@ -104,7 +104,9 @@ def _get_sdc_images(args, sdc_version): images = [] tag_version = args.sdc_version_tag or sdc_version image_name = IMAGE_NAME_TEMPLATE.format(tag_version) - tag = IMAGE_NAME_TEMPLATE.format('{}-latest'.format(tag_version.split('-')[0])) + # Following will take care of the tag versions like '3.8.1-0011-RC1' + # which will also be tagged like '3.8.1-0011-latest' + tag = IMAGE_NAME_TEMPLATE.format('{}-latest'.format(tag_version.rsplit('-', 1)[0])) for el_version in EL_VERSIONS: el_image_name = '{}-{}'.format(image_name, el_version)