Skip to content

Commit 3461904

Browse files
author
Gauvain Pocentek
committed
Project import: fix the override_params parameter
Closes #552
1 parent a139179 commit 3461904

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab/v4/objects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3605,7 +3605,8 @@ def import_project(self, file, path, namespace=None, overwrite=False,
36053605
'overwrite': overwrite
36063606
}
36073607
if override_params:
3608-
data['override_params'] = override_params
3608+
for k, v in override_params.items():
3609+
data['override_params[%s]' % k] = v
36093610
if namespace:
36103611
data['namespace'] = namespace
36113612
return self.gitlab.http_post('/projects/import', post_data=data,

0 commit comments

Comments
 (0)