Change validate method to work for all storages
This commit is contained in:
parent
c30b8dd1ad
commit
770ac0016e
4 changed files with 11 additions and 16 deletions
|
@ -107,13 +107,9 @@ def _validate_registry_storage(config, _):
|
|||
if replication_enabled and storage_type == 'LocalStorage':
|
||||
raise Exception('Locally mounted directory not supported with storage replication')
|
||||
|
||||
# Run custom validation on the driver.
|
||||
# Run validation on the driver.
|
||||
driver.validate(app.config['HTTPCLIENT'])
|
||||
|
||||
# Put and remove a temporary file to make sure the normal storage paths work.
|
||||
driver.put_content('_verify', 'testing 123')
|
||||
driver.remove('_verify')
|
||||
|
||||
# Run setup on the driver if the read/write succeeded.
|
||||
driver.setup()
|
||||
except Exception as ex:
|
||||
|
|
Reference in a new issue