Skip to content

Commit 020e78f

Browse files
committed
Add donwload cuncurrency for repository
1 parent b3b52cc commit 020e78f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

nailgun/entities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7033,6 +7033,7 @@ def __init__(self, server_config=None, **kwargs):
70337033
'deb_releases': entity_fields.StringField(),
70347034
'deb_components': entity_fields.StringField(),
70357035
'deb_architectures': entity_fields.StringField(),
7036+
'download_concurrency': entity_fields.IntegerField(),
70367037
}
70377038
if self._fields['content_type'].choices == 'yum':
70387039
self._fields['download_policy'].required = True
@@ -7103,6 +7104,7 @@ def read(self, entity=None, attrs=None, ignore=None, params=None):
71037104
ignore.add('organization')
71047105
ignore.add('upstream_password')
71057106
ignore.add('mirror_on_sync')
7107+
ignore.add('download_concurrency')
71067108
return super().read(entity, attrs, ignore, params)
71077109

71087110
def create_missing(self):

tests/test_entities.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,10 @@ def test_ignore_arg_v1(self):
12921292
{'discovery', 'remote_execution_proxy', 'subnet_parameters_attributes'},
12931293
),
12941294
(entities.Subscription, {'organization'}),
1295-
(entities.Repository, {'organization', 'upstream_password', 'mirror_on_sync'}),
1295+
(
1296+
entities.Repository,
1297+
{'organization', 'upstream_password', 'mirror_on_sync', 'download_concurrency'},
1298+
),
12961299
(entities.User, {'password'}),
12971300
(entities.ScapContents, {'scap_file'}),
12981301
(entities.TailoringFile, {'scap_file'}),

0 commit comments

Comments
 (0)