Skip to content

Commit

Permalink
Default s3 folder to ''
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 19, 2012
1 parent 8adf9d0 commit 5bc9c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tilecloud_chain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def __init__(self, config_file, options, layer_name=None):
error = self.validate(cache, name, 'folder', attribute_type=str, required=True) or error
elif cache == 's3':
error = self.validate(cache, name, 'bucket', attribute_type=str, required=True) or error
error = self.validate(cache, name, 'folder', attribute_type=str, default='') or error

error = self.validate(self.config, 'generation', 'config', attribute_type=dict, default={}) or error
error = self.validate(self.config['generation'], 'generation', 'default_cache', attribute_type=str) or error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ caches:
# %(bucket)s and %(folder)s comes from this cache
http_url: https://%(host)s/%(bucket)s/%(folder)s
bucket: tiles
folder: tiles
folder:

# this defines some defaults values for all the layers
layer_default:
Expand Down

0 comments on commit 5bc9c84

Please sign in to comment.