Skip to content

Commit 77f85b5

Browse files
committed
fix(worker): Handle git-annex remotes with multiple = in a value
Headers set in the remote are an example where this is common.
1 parent 25ee4ad commit 77f85b5

File tree

1 file changed

+3
-1
lines changed
  • services/datalad/datalad_service/common

1 file changed

+3
-1
lines changed

services/datalad/datalad_service/common/annex.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ def compute_rmet(key, legacy=False):
132132

133133

134134
def parse_remote_line(remoteLine):
135-
remoteConfig = dict(item.split('=') for item in remoteLine[37:].split(' '))
135+
remoteConfig = dict(
136+
item.split('=', maxsplit=1) for item in remoteLine[37:].split(' ')
137+
)
136138
if remoteConfig['type'] == 'S3' and remoteConfig['bucket'] in S3_BUCKETS_WHITELIST:
137139
remoteUuid = remoteLine[0:36]
138140
remoteUrl = remoteConfig['publicurl'] if 'publicurl' in remoteConfig else None

0 commit comments

Comments
 (0)