Skip to content

Commit

Permalink
fix(keeper.py): a nasty string vs. list type error
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmd committed Jul 1, 2024
1 parent f53a3db commit 448db62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.10
0.10.11
7 changes: 5 additions & 2 deletions keeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,7 @@ def generate_config(docker_repo, gitlab_ci_tags, propagate_data):
prop = propagate_data[slug]
strat = prop['strategy']
if 'item' in strat:
check_list(strat['item'])
item = ','.join(strat['item'])
else:
item = ''
Expand Down Expand Up @@ -1332,8 +1333,8 @@ def main_write_artifacts(upstream_version, minimal, # <- input ignored
+ "unexpected item" % command)
res_elt = {}
res_elt['mode'] = command
if item:
res_elt['item'] = item
if item: # here, a string or comma-separated list
res_elt['item'] = uniqify_tags(trim_comma_split(item))
manual_propagate[slug] = res_elt
# if debug:
print_stderr('Specified manual_propagate:')
Expand Down Expand Up @@ -1658,6 +1659,8 @@ def test_trim_comma_split():
assert sorted(flat_map_trim_comma_split(['dev', '8.19,8.20,',
'dev,dev-native'])) == \
sorted(['8.19', '8.20', 'dev', 'dev', 'dev-native'])
assert uniqify_tags(trim_comma_split('dev')) == ['dev']
assert uniqify_tags(trim_comma_split('dev,dev,')) == ['dev']


if __name__ == "__main__":
Expand Down

0 comments on commit 448db62

Please sign in to comment.