Преглед изворни кода

address review suggestions

Stavros kois пре 1 година
родитељ
комит
3183643dbf
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      library/ix-dev/community/immich/migrations/migrate

+ 2 - 2
library/ix-dev/community/immich/migrations/migrate

@@ -15,7 +15,7 @@ def storage_migrate(storage):
         storage['hostPathConfig'] = {'hostPath': storage['hostPath']}
         delete_keys.append('hostPath')
 
-    if storage['type'] == 'ixVolume':
+    elif storage['type'] == 'ixVolume':
         # Check if the key exists, if not we have already migrated
         if not storage.get('datasetName'):
             return storage
@@ -25,7 +25,7 @@ def storage_migrate(storage):
 
 
     for key in delete_keys:
-        del storage[key]
+        storage.pop(key)
 
     return storage