debian/lister: Use url parameter name instead of origin

within the scheduled task.

Related D2135
This commit is contained in:
Antoine R. Dumont (@ardumont) 2019-10-17 18:01:22 +02:00
parent 56d7cff6e1
commit 7c247c8a4a
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
2 changed files with 2 additions and 2 deletions

View file

@ -196,7 +196,7 @@ class DistributionSnapshot(SQLBase):
'arguments': {
'args': [],
'kwargs': {
'origin': origin,
'url': origin,
'date': self.date.isoformat(),
'packages': package_versions,
},

View file

@ -27,7 +27,7 @@ def test_lister_debian(lister_debian, datadir, requests_mock_datadir):
# kwargs
kwargs = row['arguments']['kwargs']
assert set(kwargs.keys()) == {'origin', 'date', 'packages'}
assert set(kwargs.keys()) == {'url', 'date', 'packages'}
logger.debug('kwargs: %s', kwargs)