From 3183643dbfffa6e938450a6a2d11d98f5846ca11 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 20 Nov 2023 18:00:53 +0200 Subject: [PATCH] address review suggestions --- library/ix-dev/community/immich/migrations/migrate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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