From 53a1537cdea02bee5da48a29dfd55866368cc9a1 Mon Sep 17 00:00:00 2001 From: Scott Little Date: Sat, 19 Sep 2020 00:06:47 -0400 Subject: [PATCH] helm_chart_modify.py: remove break Closes-Bug: 1893261 Change-Id: Id4c3863ba7eddeb77e8dcbe6cf6caefa5252957d Signed-off-by: Scott Little --- build-tools/helm_chart_modify.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/build-tools/helm_chart_modify.py b/build-tools/helm_chart_modify.py index 2488d6c0..cb805fb6 100755 --- a/build-tools/helm_chart_modify.py +++ b/build-tools/helm_chart_modify.py @@ -120,11 +120,9 @@ def modify_yaml(document, grand_parent_key, parent_key, new_image_dict): continue if grand_parent_key == 'images' and parent_key == 'tags': - match_found = False name = get_image_name(document[k]) if name in new_image_dict: modify_image_and_tag(document, k, '', new_image_dict[name]) - break else: # copy values that are not keyed by image_key or tag_key if k not in (image_key, tag_key): @@ -135,11 +133,9 @@ def modify_yaml(document, grand_parent_key, parent_key, new_image_dict): k = image_key if k in document and not isinstance(document[k], dict): - match_found = False name = get_image_name(document[k]) if name in new_image_dict: modify_image_and_tag(document, k, tag_key, new_image_dict[name]) - break def main(argv):