Prevent local storage setup on non-mounted paths

Fixes #269
This commit is contained in:
Joseph Schorr 2015-07-27 14:32:02 -04:00
parent 66aaf0e4a2
commit 26ae629189
3 changed files with 24 additions and 1 deletions

View file

@ -82,7 +82,10 @@ def _validate_registry_storage(config, _):
""" Validates registry storage. """
driver = get_storage_provider(config)
# Put and remove a temporary file.
# Run custom validation on the driver.
driver.validate()
# Put and remove a temporary file to make sure the normal storage paths work.
driver.put_content('_verify', 'testing 123')
driver.remove('_verify')