Skip to content

Commit e61c4f6

Browse files
committed
Bug fix expected list but iterator provided for metadata list
1 parent 82bc4c2 commit e61c4f6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

entrypoint.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,13 @@
9191
# Get metadata
9292
all_commit = git_repo.iter_commits()
9393
all_apt_action_commit = filter(lambda x: (x.message[:12] == '[apt-action]'), all_commit)
94-
apt_action_metadata_str = map(
95-
lambda x: re.findall('apt-action-metadata({.+})$', x.message),
96-
all_apt_action_commit,
94+
apt_action_metadata_str = list(
95+
map(
96+
lambda x: re.findall('apt-action-metadata({.+})$', x.message),
97+
all_apt_action_commit,
98+
)
9799
)
98-
apt_action_metadata = map(lambda x: json.loads(x[0]), apt_action_metadata_str)
100+
apt_action_metadata = list(map(lambda x: json.loads(x[0]), apt_action_metadata_str))
99101

100102
logging.debug(apt_action_metadata_str)
101103

0 commit comments

Comments
 (0)