Browse Source

Specify the unsupported driver on error

master
Ricardo Branco 6 years ago
parent
commit
300bc26dde
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      clean_registry.py

+ 2
- 1
clean_registry.py View File

@@ -235,7 +235,8 @@ class RegistryCleaner():
235 235
             try:
236 236
                 registry_dir = data['storage']['filesystem']['rootdirectory']
237 237
             except KeyError:
238
-                error("Unsupported storage driver")
238
+                driver = [k for k in 'azure gcs inmemory oss s3 swift'.split() if k in data['storage']][0]
239
+                error("Unsupported storage driver: " + driver)
239 240
 
240 241
         if dockerized():
241 242
             return registry_dir

Loading…
Cancel
Save