Skip to content
Snippets Groups Projects
Commit 020a555d authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Respect initial key convention (_ delimited)

parent 963e3933
No related branches found
No related tags found
No related merge requests found
......@@ -265,8 +265,8 @@ def revision_identifier(revision):
])
metadata = revision.get('metadata', {})
if 'extra-headers' in metadata:
headers = metadata['extra-headers']
if 'extra_headers' in metadata:
headers = metadata['extra_headers']
keys = list(headers.keys())
keys.sort()
for header_key in keys:
......
......@@ -289,7 +289,7 @@ class RevisionIdentifier(unittest.TestCase):
tzinfo=linus_tz),
'message': b'Linux 4.2-rc2\n',
'metadata': {
'extra-headers': {
'extra_headers': {
'svn-revision': 10,
'svn-repo-uuid': '046f1af7-66c2-d61b-5410-ce57b7db7bff',
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment