Skip to content

Commit

Permalink
Merge pull request #6952 from adswa/bf-6950
Browse files Browse the repository at this point in the history
BF: Remove duplicate key in result record
  • Loading branch information
yarikoptic committed Aug 17, 2022
2 parents bacdc8e + 07c596f commit 2c00733
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion datalad/distributed/create_sibling_ria.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ def __call__(url,
sname, dpath),
type='sibling',
name=sname,
ds=ds,
**res_kwargs,
)
failed = True
Expand Down
5 changes: 5 additions & 0 deletions datalad/distributed/tests/test_create_sibling_ria.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ def _test_create_store(host, base_path=None, ds_path=None, clone_path=None):
status='ok',
action='get',
path=op.join(installed_ds.path, 'ds', 'file1.txt'))
# repeat the call to ensure it doesn't crash (see #6950)
res = ds.create_sibling_ria("ria+ssh://test-store:", "datastore", on_failure='ignore')
assert_result_count(res, 1, status='error', action='create-sibling-ria', message=(
"a sibling %r is already configured in dataset %r",
'datastore', ds.path))

# now, again but recursive.
res = ds.create_sibling_ria("ria+ssh://test-store:", "datastore",
Expand Down

0 comments on commit 2c00733

Please sign in to comment.