File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -362,8 +362,11 @@ def do_deploy()
362
362
# routing rule per project.
363
363
routing_rules = [ ]
364
364
config_file [ 'params' ] [ 'project_descriptions' ] . each do |project , description |
365
- path = description [ 'path' ]
366
- archived_path = description [ 'archived_path' ]
365
+ # These paths come with leading `/`s (which is correct), but the routing rules
366
+ # assume a relative path (which is also correct). To account for this, we
367
+ # strip the leading slashes here.
368
+ path = description [ 'path' ] [ 1 ..-1 ]
369
+ archived_path = description [ 'archived_path' ] [ 1 ..-1 ]
367
370
ver = description [ 'latest' ]
368
371
routing_rules . push (
369
372
{
@@ -396,7 +399,7 @@ def do_deploy()
396
399
end
397
400
#TODO: We need to implement some way of adding arbitrary routing rules. Maybe
398
401
# add a section in config.yaml that's just a JSON string that we parse?
399
- riak_path = config_file [ 'params' ] [ 'project_descriptions' ] [ 'riak_kv' ] [ 'path' ]
402
+ riak_path = config_file [ 'params' ] [ 'project_descriptions' ] [ 'riak_kv' ] [ 'path' ] [ 1 ..- 1 ]
400
403
riak_ver = config_file [ 'params' ] [ 'project_descriptions' ] [ 'riak_kv' ] [ 'latest' ]
401
404
routing_rules . push (
402
405
{
You can’t perform that action at this time.
0 commit comments