Move tar filter to file, add tests for it
This commit is contained in:
		
							parent
							
								
									db757edcd2
								
							
						
					
					
						commit
						d7ffb54333
					
				
					 9 changed files with 83 additions and 32 deletions
				
			
		|  | @ -12,6 +12,7 @@ class StorageValidator(BaseValidator): | |||
|     client = validator_context.http_client | ||||
|     ip_resolver = validator_context.ip_resolver | ||||
|     config_provider = validator_context.config_provider | ||||
|     skip_localstorage_validation = validator_context.skip_localstorage_validation | ||||
| 
 | ||||
|     replication_enabled = config.get('FEATURE_STORAGE_REPLICATION', False) | ||||
| 
 | ||||
|  | @ -20,6 +21,9 @@ class StorageValidator(BaseValidator): | |||
|       raise ConfigValidationException('Storage configuration required') | ||||
| 
 | ||||
|     for name, (storage_type, driver) in providers: | ||||
|       if skip_localstorage_validation and storage_type == 'LocalStorage': | ||||
|           continue | ||||
| 
 | ||||
|       try: | ||||
|         if replication_enabled and storage_type == 'LocalStorage': | ||||
|           raise ConfigValidationException('Locally mounted directory not supported ' + | ||||
|  |  | |||
		Reference in a new issue