diff --git a/library/ix-dev/community/immich/migrations/migrate b/library/ix-dev/community/immich/migrations/migrate index 1f5adbcaa5..0f45902579 100644 --- a/library/ix-dev/community/immich/migrations/migrate +++ b/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